summaryrefslogtreecommitdiff
path: root/lib/chef/rest.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-18 15:14:31 +0000
committerThom May <thom@chef.io>2016-01-18 15:14:31 +0000
commit0ef0ab07531ae78cb4052242037227b0fb5365dc (patch)
tree64100fafb9164d7af2f94475c28a53f65c9b422f /lib/chef/rest.rb
parent808fe8b34254c2747d333205f7f7cdb4224cf8aa (diff)
downloadchef-0ef0ab07531ae78cb4052242037227b0fb5365dc.tar.gz
add deprecation warnings
Diffstat (limited to 'lib/chef/rest.rb')
-rw-r--r--lib/chef/rest.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb
index 96a563e034..73cd0d68a9 100644
--- a/lib/chef/rest.rb
+++ b/lib/chef/rest.rb
@@ -59,6 +59,8 @@ class Chef
# HTTP GET request to http://localhost:4000/nodes
def initialize(url, client_name=Chef::Config[:node_name], signing_key_filename=Chef::Config[:client_key], options={})
+ Chef.log_deprecation("Chef::REST is deprecated. Please use Chef::ServerAPI, or investigate Ridley or ChefAPI.")
+
signing_key_filename = nil if chef_zero_uri?(url)
options = options.dup