Class: Orchestra::DSL::Steps::Builder
- Inherits:
-
Object
- Object
- Orchestra::DSL::Steps::Builder
- Defined in:
- lib/orchestra/dsl/steps.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#defaults ⇒ Object
readonly
Returns the value of attribute defaults.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#execute_block ⇒ Object
Returns the value of attribute execute_block.
-
#provisions ⇒ Object
readonly
Returns the value of attribute provisions.
Instance Method Summary collapse
- #build_step ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize ⇒ Builder
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
#collection ⇒ Object
Returns the value of attribute collection.
5 6 7 |
# File 'lib/orchestra/dsl/steps.rb', line 5 def collection @collection end |
#defaults ⇒ Object (readonly)
Returns the value of attribute defaults.
7 8 9 |
# File 'lib/orchestra/dsl/steps.rb', line 7 def defaults @defaults end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
7 8 9 |
# File 'lib/orchestra/dsl/steps.rb', line 7 def dependencies @dependencies end |
#execute_block ⇒ Object
Returns the value of attribute execute_block.
5 6 7 |
# File 'lib/orchestra/dsl/steps.rb', line 5 def execute_block @execute_block end |
#provisions ⇒ Object (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_step ⇒ Object
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 |