Method: Chef::ApiClient::Registration#update

Defined in:
lib/chef/api_client/registration.rb

#updateObject



111
112
113
114
115
116
117
118
119
# File 'lib/chef/api_client/registration.rb', line 111

def update
  response = http_api.put("clients/#{name}", put_data)
  if response.respond_to?(:private_key) # Chef 11
    @server_generated_private_key = response.private_key
  else # Chef 10
    @server_generated_private_key = response["private_key"]
  end
  response
end