module Orchestra::Execution

Public Instance Methods

build(operation, conductor, input = {}) click to toggle source
# File lib/orchestra/execution.rb, line 5
def build operation, conductor, input = {}
  run_list = RunList.build operation.steps, operation.result, input.keys
  node = Recording::Node.new run_list, operation.name, input
  Operation.new conductor, run_list, input, node
end
execute_step(step, input) click to toggle source
# File lib/orchestra/execution.rb, line 11
def execute_step step, input
  node = Recording::Node.new step, 'anonymous', input
  operation_execution = Operation.new Conductor.new, {}, input, node
  Step.execute step, node.name, operation_execution
end