summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-10-03 12:41:28 -0700
committerNoah Kantrowitz <noah@coderanger.net>2017-10-03 12:41:28 -0700
commit136e467e76fbd18552103b366c6fa33e6005f48f (patch)
treefb31242da980b6d7e91b2d576f6bc1816c6bc442 /lib/chef/resource
parentc39921025ac79db1448244c8cf69b810d38ea31b (diff)
downloadchef-136e467e76fbd18552103b366c6fa33e6005f48f.tar.gz
Deprecate the deploy resource and family.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/deploy.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/resource/deploy.rb b/lib/chef/resource/deploy.rb
index b8e6a26f97..f74fe86c12 100644
--- a/lib/chef/resource/deploy.rb
+++ b/lib/chef/resource/deploy.rb
@@ -84,6 +84,12 @@ class Chef
@checkout_branch = "deploy"
end
+ # This resource is deprecated.
+ def after_created
+ Chef.deprecated(:deploy_resource, "The #{resource_name} resource (#{source_line}) is deprecated and will be removed from Chef core in 14.0 (April 2018). " \
+ "A migration cookbook will be available in the future, see the deprecation documentation for more information.")
+ end
+
# where the checked out/cloned code goes
def destination
@destination ||= shared_path + "/#{@repository_cache}"