Class: Dapp::Config::Directive::Chef

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/config/directive/chef.rb

Overview

Chef

Defined Under Namespace

Classes: Attributes

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#_attributesObject

Returns the value of attribute _attributes.



6
7
8
# File 'lib/dapp/config/directive/chef.rb', line 6

def _attributes
  @_attributes
end

#_dimodObject

Returns the value of attribute _dimod.



6
7
8
# File 'lib/dapp/config/directive/chef.rb', line 6

def _dimod
  @_dimod
end

#_recipeObject

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

#attributesObject



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