diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-15 11:49:18 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-15 11:50:01 -0700 |
commit | 544a9127cf3ed738d642b2490ed3063f1623c36c (patch) | |
tree | 9faf191b88bab71583c257d51298cdc7360b5107 /lib/chef/provider.rb | |
parent | f99b3362694d9cd9f70aa808b96a3fe3420650e1 (diff) | |
download | chef-544a9127cf3ed738d642b2490ed3063f1623c36c.tar.gz |
add better resource manipulation API
deprecates chef_rewind functionality completely and adds a few
more features
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r-- | lib/chef/provider.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index ebabb7b9eb..03b546c09d 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -32,6 +32,14 @@ class Chef class Provider require "chef/mixin/why_run" require "chef/mixin/provides" + + attr_accessor :new_resource + attr_accessor :current_resource + attr_accessor :run_context + + attr_reader :recipe_name + attr_reader :cookbook_name + include Chef::Mixin::WhyRun extend Chef::Mixin::Provides @@ -43,13 +51,6 @@ class Chef true end - attr_accessor :new_resource - attr_accessor :current_resource - attr_accessor :run_context - - attr_reader :recipe_name - attr_reader :cookbook_name - #-- # TODO: this should be a reader, and the action should be passed in the # constructor; however, many/most subclasses override the constructor so |