module StepMachine::InstanceMethods
Public Instance Methods
after_each_step(options = {}, &block)
click to toggle source
# File lib/step_machine.rb, line 33 def after_each_step(options = {}, &block) @step_machine_runner.after_each_step(options, &block) end
before_each_step(options = {}, &block)
click to toggle source
# File lib/step_machine.rb, line 29 def before_each_step(options = {}, &block) @step_machine_runner.before_each_step(options, &block) end
failed_step()
click to toggle source
# File lib/step_machine.rb, line 49 def failed_step @step_machine_runner.failed_step end
first_step(step)
click to toggle source
# File lib/step_machine.rb, line 41 def first_step(step) @step_machine_runner.first_step = step end
group(name, &block)
click to toggle source
# File lib/step_machine.rb, line 15 def group(name, &block) @step_machine_runner ||= Runner.new @step_machine_runner.group(name, &block) end
on_step_failure(options = {}, &block)
click to toggle source
# File lib/step_machine.rb, line 25 def on_step_failure(options = {}, &block) @step_machine_runner.on_step_failure(options, &block) end
run_status()
click to toggle source
# File lib/step_machine.rb, line 45 def run_status @step_machine_runner.status end
run_steps(options = {})
click to toggle source
# File lib/step_machine.rb, line 37 def run_steps(options = {}) @step_machine_runner.run(options) end
step(name, &block)
click to toggle source
# File lib/step_machine.rb, line 20 def step(name, &block) @step_machine_runner ||= Runner.new @step_machine_runner.step(name, &block) end