summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_manifest.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-02-11 12:07:23 -0800
committerdanielsdeleo <dan@getchef.com>2015-02-11 12:07:23 -0800
commitd19fa385eed8f96b5e851d0ffee71c141c5cbe8e (patch)
tree45a50361f4bb7107ea8c096be502c3970cdf10b1 /lib/chef/cookbook_manifest.rb
parent3544a2a32e8a4ce99a3e39e4a1810578c9773785 (diff)
downloadchef-d19fa385eed8f96b5e851d0ffee71c141c5cbe8e.tar.gz
Remove deprecations for Cookbook Version HTTP resource behaviors
We cannot determine the best way to organize various CookbookManifest formats ahead of time, so we make the CookbookManifest API private, and un-deprecate the methods in CookbookVersion that delegate to CookbookManifest. We'll re-deprecate these when we have a stable public API for CookbookManifest behaviors.
Diffstat (limited to 'lib/chef/cookbook_manifest.rb')
-rw-r--r--lib/chef/cookbook_manifest.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/cookbook_manifest.rb b/lib/chef/cookbook_manifest.rb
index 30f8596b39..4f80203ccf 100644
--- a/lib/chef/cookbook_manifest.rb
+++ b/lib/chef/cookbook_manifest.rb
@@ -46,6 +46,11 @@ class Chef
# cookbook_version in the "manifest" format, or #to_json to get a JSON
# representation of the cookbook_version.
#
+ # The inferface for this behavior is expected to change as we implement new
+ # manifest formats. The entire class should be considered a private API for
+ # now.
+ #
+ # @api private
# @param policy_mode [Boolean] whether to convert cookbooks to Hash/JSON in
# the format used by the `cookbook_artifacts` endpoint (for policyfiles).
# Setting this option also changes the behavior of #save_url and