diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-29 10:11:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-29 10:12:04 -0700 |
commit | bae9118c612fa6d0f102b26fd3ba72cf612f7e60 (patch) | |
tree | ed14045a32a6544e1ca863087285392d93d223b2 /lib/chef/resource.rb | |
parent | 12242c1886d8d1a41e8c61c24d074fb76db4dbdd (diff) | |
download | chef-bae9118c612fa6d0f102b26fd3ba72cf612f7e60.tar.gz |
Make ActionClass a class
since any ActionClass literally is-a Chef::Provider it should just
use inheritance and then we don't have to use the hacky hooks for
class methods in modules and it becomes more clear from the
ActionClass source what it is and what it does.
Bonus starts the deprecation of properties being injected into the
provider namespace.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r-- | lib/chef/resource.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 8992594933..2aee8536a4 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1172,12 +1172,11 @@ class Chef if superclass.custom_resource? superclass.action_class else - Chef::Provider + ActionClass end resource_class = self Class.new(base_provider) do - include ActionClass self.resource_class = resource_class end end |