Exception: Chef::Node::AttributeDoesNotExistError
- Defined in:
- lib/chef/sugar/node.rb
Instance Method Summary collapse
-
#initialize(keys, key) ⇒ AttributeDoesNotExistError
constructor
A new instance of AttributeDoesNotExistError.
Constructor Details
#initialize(keys, key) ⇒ AttributeDoesNotExistError
Returns a new instance of AttributeDoesNotExistError.
20 21 22 23 24 25 26 27 28 |
# File 'lib/chef/sugar/node.rb', line 20 def initialize(keys, key) hash = keys.map { |key| "['#{key}']" } super <<-EOH No attribute `node#{hash.join}' exists on the current node. Specifically the `#{key}' attribute is not defined. Please make sure you have spelled everything correctly. EOH end |