Method: ChefAPI::Resource::Base#save

Defined in:
lib/chef-api/resources/base.rb

#saveBoolean

Commit the resource and any changes to the remote Chef Server. Any errors are gracefully handled and added to the resource’s error collection for handling.

Returns:

  • (Boolean)

    true if the save was successfuly, false otherwise



706
707
708
709
710
# File 'lib/chef-api/resources/base.rb', line 706

def save
  save!
rescue
  false
end