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 | |
parent | b663f070786ad004fc2d8a71699a3d30abdd9f6d (diff) | |
download | chef-e01711824bcddb72c7898d257dbf4c4a3b804a5a.tar.gz |
Deprecate CookbookVersion#latest_cookbooks
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/chef/cookbook_version.rb | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 197d537d74..a4272b21db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -141,6 +141,7 @@ * Add homebrew provider for package resource, use it by default on OS X (Issue #1709) * Add escape_glob method to PathHelper, update glob operations. * Verify x509 properties of certificates in the :trusted_certs_dir during knife ssl check. +* Deprecate CookbookVersion#latest_cookbooks ## Last Release: 11.14.2 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) |