diff options
author | danielsdeleo <dan@opscode.com> | 2013-10-15 16:58:16 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-10-16 17:52:52 -0700 |
commit | e191e7c324da77eee0e60550ea6dbabbad8fe3dd (patch) | |
tree | ad224b5fa696d9a3818a5b7e1c03acceb70caac9 | |
parent | 534898d06fd423689c4e0b746d816b4fe3e67673 (diff) | |
download | chef-e191e7c324da77eee0e60550ea6dbabbad8fe3dd.tar.gz |
Use API SSL policy w/ Chef::REST
-rw-r--r-- | lib/chef/rest.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb index 1a60fa093e..4168cd63be 100644 --- a/lib/chef/rest.rb +++ b/lib/chef/rest.rb @@ -160,6 +160,11 @@ class Chef public :create_url + def http_client(base_url=nil) + base_url ||= url + BasicClient.new(base_url, :ssl_policy => Chef::HTTP::APISSLPolicy) + end + ############################################################################ # DEPRECATED ############################################################################ |