summaryrefslogtreecommitdiff
path: root/lib/chef/resource/execute.rb
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-03-18 22:30:46 -0700
committerAdam Edwards <adamed@opscode.com>2014-03-29 00:21:01 -0700
commit636ac12b8c75c4e610b955dc1b41a8efb582fd94 (patch)
treef52517b015f7e1ea0cdb96567620911691eeeae4 /lib/chef/resource/execute.rb
parent7519f3461c885f742bf6efa30f75eaf88d5fc2e2 (diff)
downloadchef-636ac12b8c75c4e610b955dc1b41a8efb582fd94.tar.gz
Refactor to move inheritance to script and derived resources
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r--lib/chef/resource/execute.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index 8715871cfc..c51e534dec 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -41,15 +41,6 @@ class Chef
@user = nil
@allowed_actions.push(:run)
@umask = nil
- append_guard_inherited_attributes(
- [
- :cwd,
- :environment,
- :group,
- :path,
- :user,
- :umask
- ])
end
def umask(arg=nil)
@@ -134,7 +125,11 @@ class Chef
)
end
+ protected
+ def append_guard_inherited_attributes(inherited_attributes)
+ @guard_inherited_attributes.concat(inherited_attributes)
+ end
end
end