Class: Ironfan::Dsl::Role

Inherits:
Ironfan::Dsl show all
Defined in:
lib/ironfan/headers.rb,
lib/ironfan/dsl/role.rb

Instance Attribute Summary

Attributes included from Gorillib::Resolution

#underlay

Instance Method Summary collapse

Methods inherited from Ironfan::Dsl

#_skip_fields, #skip_fields, #to_manifest

Methods included from Gorillib::Resolution

#deep_resolve, #merge_resolve, #merge_values, #read_resolved_attribute, #read_set_attribute, #read_set_or_underlay_attribute, #read_underlay_attribute, #resolve, #resolve!, #resolve_value

Methods included from CookbookRequirements

#_cookbook_reqs, #children, #cookbook_req, #cookbook_reqs, #join_req

Methods inherited from Builder

ui, #ui

Instance Method Details

#default_attributes(val = nil) ⇒ Object



12
13
14
15
# File 'lib/ironfan/dsl/role.rb', line 12

def default_attributes(val=nil)
  return super() if val.nil?
  super(read_attribute(:default_attributes).deep_merge(val))
end

#override_attributes(val = nil) ⇒ Object



8
9
10
11
# File 'lib/ironfan/dsl/role.rb', line 8

def override_attributes(val=nil)
  return super() if val.nil?
  super(read_attribute(:override_attributes).deep_merge(val))
end