chef-powershell 3.0.16 → 3.0.18
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chef-powershell might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/bin/ruby_bin_folder/AMD64/Chef.PowerShell.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/Chef.Powershell.Wrapper.dll +0 -0
- data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll +0 -0
- data/lib/chef-powershell/powershell.rb +2 -1
- data/lib/chef-powershell/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e860be13929df94594a9e7dedc58908bb083bf0195f95065dc0cf2c4e76e742
|
4
|
+
data.tar.gz: 8ad6ce851a638d82bc8e0f5c83108fe97cbc31c6a4b47f0753646529f6071405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7310a66ff3283257de4fe338ee63a33f3b15dd2ed8294b16996e81ac5825d37fc7970194e4bd9b19f0c058964d467e2af6331a32b4cd91275dae5ab10b29e3ef
|
7
|
+
data.tar.gz: 153d9499507d862e03255db8c5e6c96b184871b70112bf9d19616d6f4a31b9b659677d9bb6612945c76c2b0ae5fd7005b1c04464fa080294cbce437450bb4729
|
Binary file
|
Binary file
|
data/bin/ruby_bin_folder/AMD64/shared/Microsoft.NETCore.App/5.0.0/Chef.PowerShell.Wrapper.Core.dll
CHANGED
Binary file
|
@@ -69,6 +69,7 @@ class ChefPowerShell
|
|
69
69
|
def self.load_powershell_dll(powershell_dll)
|
70
70
|
@dlls ||= []
|
71
71
|
return if @dlls.include?(powershell_dll)
|
72
|
+
ffi_lib powershell_dll
|
72
73
|
@dlls << powershell_dll
|
73
74
|
end
|
74
75
|
|
@@ -81,7 +82,7 @@ class ChefPowerShell
|
|
81
82
|
private
|
82
83
|
|
83
84
|
def exec(script, timeout: -1)
|
84
|
-
load_powershell_dll(@powershell_dll)
|
85
|
+
PowerMod.load_powershell_dll(@powershell_dll)
|
85
86
|
execution = PowerMod.do_work(script, timeout)
|
86
87
|
output = execution.read_utf16string
|
87
88
|
hashed_outcome = FFI_Yajl::Parser.parse(output)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-powershell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|