summaryrefslogtreecommitdiff
path: root/lib/chef/provider/execute.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-02-15 13:02:21 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-02-15 13:02:21 -0800
commit80b6150b5aafa1426629102d2b70f13b893b9faf (patch)
tree0e7f79dd1b90b0f4fe18b0247c44d3f155cd1fce /lib/chef/provider/execute.rb
parentac07b819652edb10b0421c12c16cce13e6e70f23 (diff)
downloadchef-80b6150b5aafa1426629102d2b70f13b893b9faf.tar.gz
cleans up the remaining new/current_resource ivarslcg/remove-ivars
switches from using ivars to accessors for getters Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/execute.rb')
-rw-r--r--lib/chef/provider/execute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/execute.rb b/lib/chef/provider/execute.rb
index a605d9f7ec..28dce5d18c 100644
--- a/lib/chef/provider/execute.rb
+++ b/lib/chef/provider/execute.rb
@@ -27,7 +27,7 @@ class Chef
provides :execute
- def_delegators :@new_resource, :command, :returns, :environment, :user, :domain, :password, :group, :cwd, :umask, :creates
+ def_delegators :new_resource, :command, :returns, :environment, :user, :domain, :password, :group, :cwd, :umask, :creates
def load_current_resource
current_resource = Chef::Resource::Execute.new(new_resource.name)