Class: Spice::Role

Inherits:
Base
  • Object
show all
Defined in:
lib/spice/role.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, get, get_or_new, #id, identity_map, #keys, #update

Constructor Details

#initialize(attrs = Mash.new) ⇒ Role


8
9
10
11
12
# File 'lib/spice/role.rb', line 8

def initialize(attrs=Mash.new)
  super
  @attrs['json_class'] ||= "Chef::Role"
  @attrs['chef_type'] ||= 'role'
end

Instance Attribute Details

#_revObject (readonly)

Returns the value of attribute _rev


5
6
7
# File 'lib/spice/role.rb', line 5

def _rev
  @_rev
end

#chef_typeObject (readonly)

Returns the value of attribute chef_type


5
6
7
# File 'lib/spice/role.rb', line 5

def chef_type
  @chef_type
end

#default_attributesObject (readonly)

Returns the value of attribute default_attributes


5
6
7
# File 'lib/spice/role.rb', line 5

def default_attributes
  @default_attributes
end

#descriptionObject (readonly)

Returns the value of attribute description


5
6
7
# File 'lib/spice/role.rb', line 5

def description
  @description
end

#env_run_listsObject (readonly)

Returns the value of attribute env_run_lists


5
6
7
# File 'lib/spice/role.rb', line 5

def env_run_lists
  @env_run_lists
end

#json_classObject (readonly)

Returns the value of attribute json_class


5
6
7
# File 'lib/spice/role.rb', line 5

def json_class
  @json_class
end

#nameObject (readonly)

Returns the value of attribute name


5
6
7
# File 'lib/spice/role.rb', line 5

def name
  @name
end

#override_attributesObject (readonly)

Returns the value of attribute override_attributes


5
6
7
# File 'lib/spice/role.rb', line 5

def override_attributes
  @override_attributes
end

#run_listObject (readonly)

Returns the value of attribute run_list


5
6
7
# File 'lib/spice/role.rb', line 5

def run_list
  @run_list
end