bolt 2.40.1 → 2.40.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bolt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/bolt/cli.rb +9 -6
- data/lib/bolt/outputter/human.rb +2 -2
- data/lib/bolt/outputter/rainbow.rb +1 -1
- data/lib/bolt/version.rb +1 -1
- data/lib/bolt_server/schemas/partials/task.json +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1b59f916303bbd38bb82a011ecff7a2e5086094586cea84d4cd78fb052d2171
|
4
|
+
data.tar.gz: 425288bb47b49aa017d71ee0b2bb1e48de475980f70e14be11f369acadfd0582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc56fc52b8e52553902316fb26204a89a90901a9cf56e13d9ff8a1f2d4aea96d1054d578bda7598ba38384baf424a751230038bd8c6c593b113854a176cafeb7
|
7
|
+
data.tar.gz: 07a33c2ea3d3fdf5f69e9844d7c45dbb88cfedfabd8ce9264408876ee7496568033d372128eba510431bbb749c4223a8ba5420941936f2efd304ded398c90ad0
|
data/lib/bolt/cli.rb
CHANGED
@@ -212,12 +212,15 @@ module Bolt
|
|
212
212
|
|
213
213
|
private def validate_ps_version
|
214
214
|
if Bolt::Util.powershell?
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
215
|
+
command = "powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy "\
|
216
|
+
"Bypass -Command $PSVersionTable.PSVersion.Major"
|
217
|
+
stdout, _stderr, _status = Open3.capture3(command)
|
218
|
+
|
219
|
+
return unless !stdout.empty? && stdout.to_i < 3
|
220
|
+
|
221
|
+
msg = "Detected PowerShell 2 on controller. PowerShell 2 is deprecated and "\
|
222
|
+
"support will be removed in Bolt 3.0."
|
223
|
+
Bolt::Logger.deprecation_warning("PowerShell 2 controller", msg)
|
221
224
|
end
|
222
225
|
end
|
223
226
|
|
data/lib/bolt/outputter/human.rb
CHANGED
@@ -32,7 +32,7 @@ module Bolt
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def start_spin
|
35
|
-
return unless @spin
|
35
|
+
return unless @spin && @stream.isatty
|
36
36
|
@spin = true
|
37
37
|
@spin_thread = Thread.new do
|
38
38
|
loop do
|
@@ -43,7 +43,7 @@ module Bolt
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def stop_spin
|
46
|
-
return unless @spin
|
46
|
+
return unless @spin && @stream.isatty
|
47
47
|
@spin_thread.terminate
|
48
48
|
@spin = false
|
49
49
|
@stream.print("\b")
|
data/lib/bolt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.40.
|
4
|
+
version: 2.40.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
@@ -196,16 +196,16 @@ dependencies:
|
|
196
196
|
name: puppetfile-resolver
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - '='
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 0.4.0
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 0.4.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: puppet-resource_api
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -626,7 +626,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
626
626
|
- !ruby/object:Gem::Version
|
627
627
|
version: '0'
|
628
628
|
requirements: []
|
629
|
-
rubygems_version: 3.0.
|
629
|
+
rubygems_version: 3.0.8
|
630
630
|
signing_key:
|
631
631
|
specification_version: 4
|
632
632
|
summary: Execute commands remotely over SSH and WinRM
|