summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrishichawda <rishichawda@users.noreply.github.com>2021-09-30 14:29:49 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-03 16:50:59 -0700
commit317ec64303564a00d62104459cdaa08d19d1aa57 (patch)
tree7c6f1a9fa033c9aef3ce2d1068b7c501c135371c
parent26f64bf6b876a13100ea0a943008406cd5bd10c5 (diff)
downloadchef-317ec64303564a00d62104459cdaa08d19d1aa57.tar.gz
fix args error in pwsh class
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r--lib/chef/pwsh.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/pwsh.rb b/lib/chef/pwsh.rb
index 3d067eb0d6..fcc91a2421 100644
--- a/lib/chef/pwsh.rb
+++ b/lib/chef/pwsh.rb
@@ -24,15 +24,16 @@ class Chef
# bindir directory.
#
# @param script [String] script to run
+ # @param timeout [Integer, nil] timeout in seconds.
# @return [Object] output
- def initialize(script)
+ def initialize(script, timeout: nil)
@dll = Pwsh.dll
super
end
protected
- def exec(script)
+ def exec(script, timeout: nil)
# Note that we need to override the location of the shared dotnet core library
# location. With most .net core applications, you can simply publish them as a
# "self-contained" application allowing consumers of the application to run them