mixlib-install 3.12.5 → 3.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/mixlib/install.rb +1 -1
- data/lib/mixlib/install/generator/powershell/scripts/helpers.ps1.erb +12 -5
- data/lib/mixlib/install/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 601807500297868555334b6b675f76e7f47e82b06508c25034b7104c8d2d6310
|
|
4
|
+
data.tar.gz: 505719449732303c18b2b6c1ca892f61bcc9c2bfb249e3b10f7073f0db675e68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28787830d0a413c5698fd7889562f9210d8ab3f6ae9d94274f02c015280ce6e1914413e18a89036306d7f5e3ac12fd24a9401b891fde2c7de8f33a98183e4bc3
|
|
7
|
+
data.tar.gz: 0d3ec51ff6c6dbaa499eba0cf95ffd9e66881381543b6cabe257539901ad2e1cf3ca895768729d2cadc7bd8a250f9925ecfe15e88bc59f7355469ee105a6f194
|
data/Gemfile
CHANGED
data/lib/mixlib/install.rb
CHANGED
|
@@ -184,7 +184,7 @@ module Mixlib
|
|
|
184
184
|
# to disallow unsigned powershell scripts. This changes it for just this
|
|
185
185
|
# powershell session, which allows this to run even if the execution policy
|
|
186
186
|
# is set higher.
|
|
187
|
-
Mixlib::ShellOut.new("powershell.exe -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command
|
|
187
|
+
Mixlib::ShellOut.new("powershell.exe -NoProfile -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command
|
|
188
188
|
end
|
|
189
189
|
else
|
|
190
190
|
Mixlib::ShellOut.new(detect_platform_sh).run_command
|
|
@@ -79,14 +79,14 @@ function Get-WebContentOnFullNet {
|
|
|
79
79
|
$wc.Headers.Add("user-agent", "<%= user_agent_string %>")
|
|
80
80
|
$proxy.Address = $env:http_proxy
|
|
81
81
|
$bypassList = $env:no_proxy
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
|
|
84
84
|
if($bypassList -ne $null){
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
$bypassList = $bypassList.split(",")
|
|
87
87
|
$proxy.BypassList = $byPassList
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
|
|
90
90
|
$wc.Proxy = $proxy
|
|
91
91
|
|
|
92
92
|
if ([string]::IsNullOrEmpty($filepath)) {
|
|
@@ -180,9 +180,16 @@ function Get-WMIQuery {
|
|
|
180
180
|
param ($class)
|
|
181
181
|
|
|
182
182
|
if(Get-Command -Name Get-CimInstance -ErrorAction SilentlyContinue) {
|
|
183
|
-
|
|
183
|
+
try{
|
|
184
|
+
$classObject = Get-CimInstance $class
|
|
185
|
+
# If the Get-CimInstance command exists but fails due to security settings, try Get-WmiObject.
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
$classObject = Get-WmiObject $class
|
|
189
|
+
}
|
|
184
190
|
}
|
|
185
191
|
else {
|
|
186
|
-
Get-WmiObject $class
|
|
192
|
+
$classObject = Get-WmiObject $class
|
|
187
193
|
}
|
|
194
|
+
return $classObject
|
|
188
195
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mixlib-install
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.12.
|
|
4
|
+
version: 3.12.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thom May
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-02-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mixlib-shellout
|
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
|
-
rubygems_version: 3.
|
|
120
|
+
rubygems_version: 3.1.4
|
|
121
121
|
signing_key:
|
|
122
122
|
specification_version: 4
|
|
123
123
|
summary: A library for interacting with Chef Software Inc's software distribution
|