Module: Orchestra::Execution

Extended by:
Execution
Included in:
Execution
Defined in:
lib/orchestra/execution.rb

Defined Under Namespace

Classes: CollectionStep, EmbeddedOperation, Operation, Step

Instance Method Summary collapse

Instance Method Details

#build(operation, conductor, input = {}) ⇒ Object



5
6
7
8
9
# 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) ⇒ Object



11
12
13
14
15
# 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