lib/ridley/chef_objects/node_object.rb in ridley-1.0.3 vs lib/ridley/chef_objects/node_object.rb in ridley-1.1.0

- old
+ new

@@ -28,13 +28,16 @@ alias_method :normal_attributes, :normal alias_method :automatic_attributes, :automatic alias_method :default_attributes, :default alias_method :override_attributes, :override - alias_method :normal_attributes=, :normal= - alias_method :automatic_attributes=, :automatic= - alias_method :default_attributes=, :default= - alias_method :override_attributes=, :override= + # A merged hash containing a deep merge of all of the attributes respecting the node attribute + # precedence level. + # + # @return [hashie::Mash] + def chef_attributes + default.merge(normal.merge(override.merge(automatic))) + end # Set a node level normal attribute given the dotted path representation of the Chef # attribute and value. # # @note It is not possible to set any other attribute level on a node and have it persist after