summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-02 09:16:19 -0800
committerGitHub <noreply@github.com>2018-01-02 09:16:19 -0800
commit5a1aef2ec875188e8c38288ad1c861712c0c63c8 (patch)
tree6fe8614f661a3b53f4bc5b55707b3c379f309cc9
parent78b9d02e7df8e5ed596b31fb18dd56de0bc212c8 (diff)
parent8a4f189de35c9881b3e763bbbecfdde837010e39 (diff)
downloadchef-5a1aef2ec875188e8c38288ad1c861712c0c63c8.tar.gz
Merge pull request #6720 from chef/deprecate_erl_call
Deprecate erl_call resource
-rw-r--r--lib/chef/deprecated.rb10
-rw-r--r--lib/chef/resource/erl_call.rb5
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb
index 183f8e4c24..ac4440f6db 100644
--- a/lib/chef/deprecated.rb
+++ b/lib/chef/deprecated.rb
@@ -268,6 +268,16 @@ class Chef
end
end
+ class ErlResource < Base
+ def id
+ 22
+ end
+
+ def target
+ "erl_resource.html"
+ end
+ end
+
# id 3694 was deleted
class Generic < Base
diff --git a/lib/chef/resource/erl_call.rb b/lib/chef/resource/erl_call.rb
index 3e317676a5..6bc71e75e6 100644
--- a/lib/chef/resource/erl_call.rb
+++ b/lib/chef/resource/erl_call.rb
@@ -80,6 +80,11 @@ class Chef
)
end
+ # This resource is deprecated.
+ def after_created
+ Chef.deprecated(:erl_resource, "The #{resource_name} resource (#{source_line}) is deprecated and will be removed from Chef core in 14.0 (April 2018).")
+ end
+
end
end
end