Class: Orchestra::DSL::Steps::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/orchestra/dsl/steps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



9
10
11
12
13
# File 'lib/orchestra/dsl/steps.rb', line 9

def initialize
  @defaults = {}
  @dependencies = []
  @provisions = []
end

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



5
6
7
# File 'lib/orchestra/dsl/steps.rb', line 5

def collection
  @collection
end

#defaultsObject (readonly)

Returns the value of attribute defaults.



7
8
9
# File 'lib/orchestra/dsl/steps.rb', line 7

def defaults
  @defaults
end

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



7
8
9
# File 'lib/orchestra/dsl/steps.rb', line 7

def dependencies
  @dependencies
end

#execute_blockObject

Returns the value of attribute execute_block.



5
6
7
# File 'lib/orchestra/dsl/steps.rb', line 5

def execute_block
  @execute_block
end

#provisionsObject (readonly)

Returns the value of attribute provisions.



7
8
9
# File 'lib/orchestra/dsl/steps.rb', line 7

def provisions
  @provisions
end

Instance Method Details

#build_stepObject



15
16
17
18
19
20
21
22
23
# File 'lib/orchestra/dsl/steps.rb', line 15

def build_step
  Step::InlineStep.new(
    :collection    => collection,
    :defaults      => defaults,
    :dependencies  => dependencies,
    :execute_block => execute_block,
    :provides      => provisions,
  )
end