lib/chef/provisioning/chef_machine_spec.rb
#
# Save this node to the server.  If you have significant information that
# could be lost, you should do this as quickly as possible.  Data will be
# saved automatically for you after allocate_machine and ready_machine.
#
Save this node to the server.  If you have significant information that
could be lost, you should do this as quickly as possible.  Data will be
saved automatically for you after allocate_machine and ready_machine.
Save this node to the server . If you have significant information that could be lost you should do this as quickly as possible . Data will be saved automatically for you after allocate_machine and ready_machine .
def save(action_handler)
      if location && (!location.is_a?(Hash) || !location['driver_url'])
        raise "Drivers must specify a canonical driver_url in machine_spec.location.  Contact your driver's author."
      end
      _self = self
      _chef_server = _self.chef_server
      Chef::Provisioning.inline_resource(action_handler) do
        chef_node _self.name do
          chef_server _chef_server
          raw_json _self.node
        end
      end
    end
def save ( action_handler ) if location && ( ! location . is_a? ( Hash ) || ! location [ 'driver_url' ] ) raise "Drivers must specify a canonical driver_url in machine_spec.location.  Contact your driver's author." end _self = self _chef_server = _self . chef_server Chef :: Provisioning . inline_resource ( action_handler ) do chef_node _self . name do chef_server _chef_server raw_json _self . node end end end
Save this node to the server.
Save this node to the server .
# Save the node to the server.
action_handler
<not_specific>