summaryrefslogtreecommitdiff
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
parentc39921025ac79db1448244c8cf69b810d38ea31b (diff)
downloadchef-136e467e76fbd18552103b366c6fa33e6005f48f.tar.gz
Deprecate the deploy resource and family.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--lib/chef/deprecated.rb10
-rw-r--r--lib/chef/resource/deploy.rb6
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb
index 2cf0f3d1bc..183f8e4c24 100644
--- a/lib/chef/deprecated.rb
+++ b/lib/chef/deprecated.rb
@@ -258,6 +258,16 @@ class Chef
end
end
+ class DeployResource < Base
+ def id
+ 21
+ end
+
+ def target
+ "deploy_resource.html"
+ end
+ end
+
# id 3694 was deleted
class Generic < Base
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}"