diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-30 13:58:22 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-30 13:58:22 -0700 |
commit | e01711824bcddb72c7898d257dbf4c4a3b804a5a (patch) | |
tree | b26b93eea8a4369895a5d1d300a3e3bec23010df /lib/chef | |
parent | b663f070786ad004fc2d8a71699a3d30abdd9f6d (diff) | |
download | chef-e01711824bcddb72c7898d257dbf4c4a3b804a5a.tar.gz |
Deprecate CookbookVersion#latest_cookbooks
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/cookbook_version.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 1503add33a..73bff22a75 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -576,8 +576,12 @@ class Chef end # Get the newest version of all cookbooks + # Remove in Chef 13 def self.latest_cookbooks - chef_server_rest.get_rest('cookbooks/_latest') + Chef::Log.warn("[DEPRECATED]: The method Chef::CookbookVersion#latest_cookbooks is deprecated in Chef 12" + + " and will be removed in future versions of Chef. Use method Chef::CookbookVersion#list for a list of" + + " available cookbooks and their latest version.") + self.list end def <=>(o) |