Class: Orchestra::Step::ObjectStep

Inherits:
Orchestra::Step show all
Defined in:
lib/orchestra/step.rb

Instance Attribute Summary collapse

Attributes inherited from Orchestra::Step

#collection, #dependencies, #provisions

Instance Method Summary collapse

Methods inherited from Orchestra::Step

#collection?, #execute, #process, #required_dependencies

Constructor Details

#initialize(adapter, args = {}) ⇒ ObjectStep

Returns a new instance of ObjectStep.



39
40
41
42
# File 'lib/orchestra/step.rb', line 39

def initialize adapter, args = {}
  @adapter = adapter
  super args
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



37
38
39
# File 'lib/orchestra/step.rb', line 37

def adapter
  @adapter
end

Instance Method Details

#build_context(input) ⇒ Object



44
45
46
# File 'lib/orchestra/step.rb', line 44

def build_context input
  adapter.build_context input
end

#optional_dependenciesObject



48
49
50
# File 'lib/orchestra/step.rb', line 48

def optional_dependencies
  adapter.object_method.optional_dependencies
end