Class: Roast::Workflow::StepRunner
- Inherits:
-
Object
- Object
- Roast::Workflow::StepRunner
- Defined in:
- lib/roast/workflow/step_runner.rb
Overview
Interface for running workflow steps. This abstraction breaks the circular dependency between executors and the workflow.
Instance Method Summary collapse
-
#execute_step(step, options = {}) ⇒ Object
Execute a single step.
-
#execute_steps(steps) ⇒ Object
Execute a list of steps.
-
#initialize(coordinator) ⇒ StepRunner
constructor
A new instance of StepRunner.
Constructor Details
#initialize(coordinator) ⇒ StepRunner
Returns a new instance of StepRunner.
8 9 10 |
# File 'lib/roast/workflow/step_runner.rb', line 8 def initialize(coordinator) @coordinator = coordinator end |
Instance Method Details
#execute_step(step, options = {}) ⇒ Object
Execute a single step
18 19 20 |
# File 'lib/roast/workflow/step_runner.rb', line 18 def execute_step(step, = {}) @coordinator.execute_step(step, ) end |
#execute_steps(steps) ⇒ Object
Execute a list of steps
13 14 15 |
# File 'lib/roast/workflow/step_runner.rb', line 13 def execute_steps(steps) @coordinator.execute_steps(steps) end |