summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-04-04 19:52:11 -0700
committerNoah Kantrowitz <noah@coderanger.net>2017-04-04 19:52:11 -0700
commitd2dd5de0c15c1fcb0a6240f773e23bed571656f3 (patch)
treeb39171e891a7f59283c94c90f89268eff67e4b34 /lib/chef/provider.rb
parent6d90abfaad4602a4fa852a0ea2ce6c43bdf84e4e (diff)
downloadchef-d2dd5de0c15c1fcb0a6240f773e23bed571656f3.tar.gz
Add a deprecation warning when using use_inline_resources.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb7
1 files changed, 7 insertions, 0 deletions
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