summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-01 22:21:29 -0800
committerTim Smith <tsmith@chef.io>2018-01-01 22:21:29 -0800
commit8a4f189de35c9881b3e763bbbecfdde837010e39 (patch)
treecddbb3cfcd35891ccd165cf47329205fd2e77588
parentbfe8487a26f99d3cd3e08fffea8cf6457631cf69 (diff)
downloadchef-8a4f189de35c9881b3e763bbbecfdde837010e39.tar.gz
Deprecate erl_calldeprecate_erl_call
This implements RFC 98 from https://github.com/chef/chef-rfc Signed-off-by: Tim Smith <tsmith@chef.io>
-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