diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-05 11:33:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 11:33:13 -0700 |
commit | 3d84524154cecd2b31def3b57ac15a0c3f917c8a (patch) | |
tree | ac047daf8765327df88356839ba2942b1e99948c | |
parent | f6e80867dfecdbd4a9d4bb092ed09dcad4bf84dd (diff) | |
parent | c0fad89a7d7e361eaf14f30b8731a2e8babfd06d (diff) | |
download | chef-3d84524154cecd2b31def3b57ac15a0c3f917c8a.tar.gz |
Merge pull request #7122 from chef/lcg/add_property_is_set_to_providers
add delegator for property_is_set? to providers
-rw-r--r-- | lib/chef/provider.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 58659c4e95..1751c35129 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -42,6 +42,7 @@ class Chef include Chef::Mixin::WhyRun extend Chef::Mixin::Provides + extend Forwardable # includes the "core" DSL and not the "recipe" DSL by design include Chef::DSL::Core @@ -77,6 +78,10 @@ class Chef # Chef.deprecated(:use_inline_resources, "The use_inline_resources mode is no longer optional and the line enabling it can be removed") end + # delegate to the resource + # + def_delegators :@new_resource, :property_is_set? + #-- # TODO: this should be a reader, and the action should be passed in the # constructor; however, many/most subclasses override the constructor so |