Class: Dapp::Config::Directive::Chef
- Defined in:
- lib/dapp/config/directive/chef.rb
Overview
Chef
Defined Under Namespace
Classes: Attributes
Instance Attribute Summary collapse
-
#_attributes ⇒ Object
Returns the value of attribute _attributes.
-
#_dimod ⇒ Object
Returns the value of attribute _dimod.
-
#_recipe ⇒ Object
Returns the value of attribute _recipe.
Instance Method Summary collapse
- #attributes ⇒ Object
- #dimod(*args) ⇒ Object
-
#initialize(**kwargs, &blk) ⇒ Chef
constructor
A new instance of Chef.
- #recipe(*args) ⇒ Object
Constructor Details
#initialize(**kwargs, &blk) ⇒ Chef
Returns a new instance of Chef.
8 9 10 11 12 13 |
# File 'lib/dapp/config/directive/chef.rb', line 8 def initialize(**kwargs, &blk) @_dimod = [] @_recipe = [] super(**kwargs, &blk) end |
Instance Attribute Details
#_attributes ⇒ Object
Returns the value of attribute _attributes.
6 7 8 |
# File 'lib/dapp/config/directive/chef.rb', line 6 def _attributes @_attributes end |
#_dimod ⇒ Object
Returns the value of attribute _dimod.
6 7 8 |
# File 'lib/dapp/config/directive/chef.rb', line 6 def _dimod @_dimod end |
#_recipe ⇒ Object
Returns the value of attribute _recipe.
6 7 8 |
# File 'lib/dapp/config/directive/chef.rb', line 6 def _recipe @_recipe end |
Instance Method Details
#attributes ⇒ Object
23 24 25 |
# File 'lib/dapp/config/directive/chef.rb', line 23 def attributes @_attributes ||= Attributes.new end |
#dimod(*args) ⇒ Object
15 16 17 |
# File 'lib/dapp/config/directive/chef.rb', line 15 def dimod(*args) @_dimod.concat(args) end |
#recipe(*args) ⇒ Object
19 20 21 |
# File 'lib/dapp/config/directive/chef.rb', line 19 def recipe(*args) @_recipe.concat(args) end |