summaryrefslogtreecommitdiff
path: root/lib/chef/powershell.rb
diff options
context:
space:
mode:
authorrishichawda <rishichawda@users.noreply.github.com>2021-09-29 23:17:47 +0530
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-03 16:50:59 -0700
commit924bfbff0bb82cc1ab51d4a03d71ad8dda2b65b1 (patch)
tree0f9577f2ce450f13233619a826414da74c5669d3 /lib/chef/powershell.rb
parent8f27f824c8cf2965572cf0f11b49927c50ec4031 (diff)
downloadchef-924bfbff0bb82cc1ab51d4a03d71ad8dda2b65b1.tar.gz
chefstyle errors
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Diffstat (limited to 'lib/chef/powershell.rb')
-rw-r--r--lib/chef/powershell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/powershell.rb b/lib/chef/powershell.rb
index 2a097c2657..3552c6b107 100644
--- a/lib/chef/powershell.rb
+++ b/lib/chef/powershell.rb
@@ -68,7 +68,7 @@ class Chef
def exec(script, timeout: nil)
FFI.ffi_lib @dll
- FFI.attach_function :execute_powershell, :ExecuteScript, [:string, :int], :pointer
+ FFI.attach_function :execute_powershell, :ExecuteScript, %i{string int}, :pointer
timeout = timeout&.nonzero? ? timeout : -1
execution = FFI.execute_powershell(script, timeout).read_utf16string
hashed_outcome = Chef::JSONCompat.parse(execution)