Class: Chef::Knife::Raw::RawInputServerAPI
- Inherits:
-
HTTP
- Object
- HTTP
- Chef::Knife::Raw::RawInputServerAPI
- Defined in:
- lib/chef/knife/raw.rb
Overview
We need a custom HTTP client class here because we don’t want to even try to decode the body, in case we get back corrupted JSON or whatnot.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ RawInputServerAPI
constructor
A new instance of RawInputServerAPI.
Constructor Details
#initialize(options = {}) ⇒ RawInputServerAPI
Returns a new instance of RawInputServerAPI.
60 61 62 63 64 65 66 67 |
# File 'lib/chef/knife/raw.rb', line 60 def initialize( = {}) # If making a change here, also update Chef::ServerAPI. [:client_name] ||= Chef::Config[:node_name] [:raw_key] ||= Chef::Config[:client_key_contents] [:signing_key_filename] ||= Chef::Config[:client_key] unless [:raw_key] [:ssh_agent_signing] ||= Chef::Config[:ssh_agent_signing] super(Chef::Config[:chef_server_url], ) end |