diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 19:52:11 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 19:52:11 -0700 |
commit | d2dd5de0c15c1fcb0a6240f773e23bed571656f3 (patch) | |
tree | b39171e891a7f59283c94c90f89268eff67e4b34 | |
parent | 6d90abfaad4602a4fa852a0ea2ce6c43bdf84e4e (diff) | |
download | chef-d2dd5de0c15c1fcb0a6240f773e23bed571656f3.tar.gz |
Add a deprecation warning when using use_inline_resources.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r-- | lib/chef/deprecated.rb | 10 | ||||
-rw-r--r-- | lib/chef/provider.rb | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb index d4db0813c7..04ecfe5a6e 100644 --- a/lib/chef/deprecated.rb +++ b/lib/chef/deprecated.rb @@ -228,6 +228,16 @@ class Chef end end + class UseInlineResources < Base + def id + 17 + end + + def target + "use_inline_resources.html" + end + end + # id 3694 was deleted class Generic < Base diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index a9263e77ca..af7fc860bf 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -69,6 +69,13 @@ class Chef EOM end + # Deprecation stub for the old use_inline_resources mode. + # + # @return [void] + def self.use_inline_resources + Chef.deprecated(:use_inline_resources, "The use_inline_resources mode is no longer optional and the line enabling it can be removed") + end + #-- # TODO: this should be a reader, and the action should be passed in the # constructor; however, many/most subclasses override the constructor so |