diff options
author | Thom May <thom@may.lt> | 2018-01-19 10:38:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 10:38:56 +0000 |
commit | 50b4d19cc93685c55705035af04d04a01a060982 (patch) | |
tree | b34a19cf358dc3f91d0312082d4b2ad4d69118af | |
parent | 927e4a938f9178f2cb8cc5c336038ed3d58e3194 (diff) | |
parent | 5cd7ea958612241f7958ccc0e4a75351b1d150d4 (diff) | |
download | chef-50b4d19cc93685c55705035af04d04a01a060982.tar.gz |
Merge pull request #6754 from chef/revert_inline
Revert deprecation of use_inline_resources
-rw-r--r-- | lib/chef/provider.rb | 10 | ||||
-rw-r--r-- | spec/unit/provider_spec.rb | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 874735e048..9e9013b24e 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -71,10 +71,10 @@ class Chef # Deprecation stub for the old use_inline_resources mode. # - # @deprecated # @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") + # Uncomment this in Chef 13.6. + # Chef.deprecated(:use_inline_resources, "The use_inline_resources mode is no longer optional and the line enabling it can be removed") end #-- @@ -96,14 +96,10 @@ class Chef self.class.include_resource_dsl_module(new_resource) end - # are we currently running in why-run mode? - # @return [Boolean] def whyrun_mode? Chef::Config[:why_run] end - # is why run mode supported by the provider? We assume yes by default since 13.0 - # @return [Boolean] def whyrun_supported? true end @@ -117,8 +113,6 @@ class Chef run_context && run_context.resource_collection end - # the name of the current cookbook - # @return [String] def cookbook_name new_resource.cookbook_name end diff --git a/spec/unit/provider_spec.rb b/spec/unit/provider_spec.rb index 613f03a883..2565df8960 100644 --- a/spec/unit/provider_spec.rb +++ b/spec/unit/provider_spec.rb @@ -197,6 +197,7 @@ describe Chef::Provider do context "when using use_inline_resources" do it "should log a deprecation warning" do + pending Chef::VERSION.start_with?("14.1") expect(Chef).to receive(:deprecated).with(:use_inline_resources, kind_of(String)) Class.new(described_class) { use_inline_resources } end |