Class: Chef::ServerAPI

Inherits:
HTTP show all
Defined in:
lib/chef/server_api.rb

Instance Attribute Summary

Attributes inherited from HTTP

#middlewares, #redirect_limit, #sign_on_redirect, #url

Instance Method Summary collapse

Methods inherited from HTTP

#delete, #get, #head, #http_client, #last_response, middlewares, #post, #put, #request, #streaming_request, use

Constructor Details

#initialize(url = Chef::Config[:chef_server_url], options = {}) ⇒ ServerAPI

Returns a new instance of ServerAPI.



30
31
32
33
34
# File 'lib/chef/server_api.rb', line 30

def initialize(url = Chef::Config[:chef_server_url], options = {})
  options[:client_name] ||= Chef::Config[:node_name]
  options[:signing_key_filename] ||= Chef::Config[:client_key]
  super(url, options)
end