Module: Orchestra

Extended by:
Orchestra
Included in:
Orchestra
Defined in:
lib/orchestra.rb,
lib/orchestra/node.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/nodes.rb,
lib/orchestra/operation.rb,
lib/orchestra/recording.rb,
lib/orchestra/node/output.rb,
lib/orchestra/performance.rb,
lib/orchestra/thread_pool.rb,
lib/orchestra/configuration.rb,
lib/orchestra/dsl/operations.rb,
lib/orchestra/dsl/object_adapter.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.9.2"

Instance Method Summary collapse

Instance Method Details

#configure(&block) ⇒ Object



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

def configure &block
  Configuration.module_eval &block
end

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



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

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

#replay_recording(operation, store, input = {}) ⇒ Object



17
18
19
20
21
22
# File 'lib/orchestra.rb', line 17

def replay_recording operation, store, input = {}
  store = Util.recursively_symbolize store
  input = input.merge store[:input]
  svc_recordings = store[:service_recordings]
  Recording.replay operation, input, svc_recordings
end