summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-04-15 11:49:18 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-04-15 11:50:01 -0700
commit544a9127cf3ed738d642b2490ed3063f1623c36c (patch)
tree9faf191b88bab71583c257d51298cdc7360b5107 /lib/chef/provider.rb
parentf99b3362694d9cd9f70aa808b96a3fe3420650e1 (diff)
downloadchef-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.rb15
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