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 ⇒ Chef

Returns a new instance of Chef.



8
9
10
11
12
13
# File 'lib/dapp/config/directive/chef.rb', line 8

def initialize
  @_dimod = []
  @_recipe = []

  super
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