diff options
author | Tim Smith <tsmith@chef.io> | 2021-03-17 19:24:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 19:24:20 -0700 |
commit | 507cf567cd521cf69fbaed081df2a3f59381e46e (patch) | |
tree | 80f8f745335cd53a802fafbb44c897ce2a267f72 /lib/chef/resource/execute.rb | |
parent | e1d61c3b8fb24d7ae638003d3ff3b367b18151e3 (diff) | |
parent | 1d5cc559fc02122cc6f18cdd832e40680c23295c (diff) | |
download | chef-507cf567cd521cf69fbaed081df2a3f59381e46e.tar.gz |
Merge pull request #11201 from chef/lcg/execute-login-option
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r-- | lib/chef/resource/execute.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index 5a78160642..88f52bbde1 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -572,6 +572,10 @@ class Chef introduced: "16.2", description: "An optional property to set the input sent to the command as STDIN." + property :login, [ TrueClass, FalseClass ], default: false, + introduced: "17.0", + description: "Use a login shell to run the commands instead of inheriting the existing execution environment." + alias :env :environment def self.set_guard_inherited_attributes(*inherited_attributes) @@ -666,7 +670,8 @@ class Chef :group, :password, :user, - :umask + :umask, + :login ) end |