Class: Roast::Workflow::StepRunner

Inherits:
Object
  • Object
show all
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

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, options = {})
  @coordinator.execute_step(step, options)
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