Method: Chef::Node::Attribute#default!

Defined in:
lib/chef/node/attribute.rb

#default!(*args) ⇒ Object

sets default attributes without merging

  • this API autovivifies (and cannot trainwreck)



363
364
365
366
367
# File 'lib/chef/node/attribute.rb', line 363

def default!(*args)
  return Decorator::Unchain.new(self, :default!) unless args.length > 0

  write(:default, *args)
end