class Chef::Knife::Raw::RawInputServerAPI
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.
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/chef/knife/raw.rb, line 60 def initialize(options = {}) # If making a change here, also update Chef::ServerAPI. options[:client_name] ||= Chef::Config[:node_name] options[:raw_key] ||= Chef::Config[:client_key_contents] options[:signing_key_filename] ||= Chef::Config[:client_key] unless options[:raw_key] options[:ssh_agent_signing] ||= Chef::Config[:ssh_agent_signing] super(Chef::Config[:chef_server_url], options) end