summaryrefslogtreecommitdiff
path: root/lib/chef/powershell.rb
diff options
context:
space:
mode:
authorrishichawda <rishichawda@users.noreply.github.com>2021-09-30 14:29:26 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-03 16:50:59 -0700
commit26f64bf6b876a13100ea0a943008406cd5bd10c5 (patch)
tree8bb38191a3336c3112aa00ce5dd086bcb5930c07 /lib/chef/powershell.rb
parent0f05bdb6b38135447811e6d1aaed09d5c456d774 (diff)
downloadchef-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.rb3
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
#