diff options
author | Adam Edwards <adamed@opscode.com> | 2014-03-18 22:30:46 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-03-29 00:21:01 -0700 |
commit | 636ac12b8c75c4e610b955dc1b41a8efb582fd94 (patch) | |
tree | f52517b015f7e1ea0cdb96567620911691eeeae4 /lib/chef/resource/execute.rb | |
parent | 7519f3461c885f742bf6efa30f75eaf88d5fc2e2 (diff) | |
download | chef-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.rb | 13 |
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 |