Class: Chef::ServerAPI
Instance Attribute Summary
Attributes inherited from HTTP
#middlewares, #redirect_limit, #sign_on_redirect, #url
Instance Method Summary collapse
-
#initialize(url = Chef::Config[:chef_server_url], options = {}) ⇒ ServerAPI
constructor
A new instance of ServerAPI.
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], = {}) [:client_name] ||= Chef::Config[:node_name] [:signing_key_filename] ||= Chef::Config[:client_key] super(url, ) end |