diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2021-09-30 14:29:26 +0000 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-03 16:50:59 -0700 |
commit | 26f64bf6b876a13100ea0a943008406cd5bd10c5 (patch) | |
tree | 8bb38191a3336c3112aa00ce5dd086bcb5930c07 /lib/chef/powershell.rb | |
parent | 0f05bdb6b38135447811e6d1aaed09d5c456d774 (diff) | |
download | chef-26f64bf6b876a13100ea0a943008406cd5bd10c5.tar.gz |
fix args error on powershell class
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Diffstat (limited to 'lib/chef/powershell.rb')
-rw-r--r-- | lib/chef/powershell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/powershell.rb b/lib/chef/powershell.rb index 3552c6b107..4be80b56b7 100644 --- a/lib/chef/powershell.rb +++ b/lib/chef/powershell.rb @@ -33,6 +33,7 @@ class Chef # Requires: .NET Framework 4.0 or higher on the target machine. # # @param script [String] script to run + # @param timeout [Integer, nil] timeout in seconds. # @return [Object] output def initialize(script, timeout: nil) # This Powershell DLL source lives here: https://github.com/chef/chef-powershell-shim @@ -41,7 +42,7 @@ class Chef # the built packages and copy the binaries to distro/ruby_bin_folder. Bundle install # ensures that the correct architecture binaries are installed into the path. @dll ||= "Chef.PowerShell.Wrapper.dll" - exec(script, timeout) + exec(script, timeout: timeout) end # |