Module: Orchestra

Extended by:
Orchestra
Included in:
Orchestra
Defined in:
lib/orchestra.rb,
lib/orchestra/step.rb,
lib/orchestra/util.rb,
lib/orchestra/errors.rb,
lib/orchestra/version.rb,
lib/orchestra/run_list.rb,
lib/orchestra/conductor.rb,
lib/orchestra/dsl/steps.rb,
lib/orchestra/execution.rb,
lib/orchestra/operation.rb,
lib/orchestra/recording.rb,
lib/orchestra/step/output.rb,
lib/orchestra/thread_pool.rb,
lib/orchestra/configuration.rb,
lib/orchestra/dsl/operations.rb,
lib/orchestra/recording/node.rb,
lib/orchestra/dsl/object_adapter.rb,
lib/orchestra/recording/playback.rb

Defined Under Namespace

Modules: Configuration, DSL, Execution, Util Classes: CircularDependencyError, Conductor, Error, MissingInputError, MissingProvisionError, Operation, Recording, RunList, Step, ThreadPool

Constant Summary collapse

VERSION =
"0.9.5"

Instance Method Summary collapse

Instance Method Details

#configure(&block) ⇒ Object



8
9
10
# File 'lib/orchestra.rb', line 8

def configure &block
  Configuration.module_eval &block
end

#execute(operation, inputs = {}) ⇒ Object



12
13
14
# File 'lib/orchestra.rb', line 12

def execute operation, inputs = {}
  Conductor.new.execute operation, inputs
end

#Recording(serialized_recording) ⇒ Object



54
55
56
57
58
59
# File 'lib/orchestra/recording.rb', line 54

def Recording serialized_recording
  recording = Recording.new serialized_recording[:service_recordings]
  recording.input = serialized_recording[:input]
  recording.output = serialized_recording[:output]
  recording.freeze
end