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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cdc44f8a923197b1dbb6a51f9dd524f0fe10f8ceb5acc9ca97dc62f7c4b37d5
4
- data.tar.gz: d2be21d9601d415b808d1a5f282e31e048be914a71e21bba340be4caf4f8a896
3
+ metadata.gz: d1b59f916303bbd38bb82a011ecff7a2e5086094586cea84d4cd78fb052d2171
4
+ data.tar.gz: 425288bb47b49aa017d71ee0b2bb1e48de475980f70e14be11f369acadfd0582
5
5
  SHA512:
6
- metadata.gz: d6ca1c1bfd4c6fd6b891d006040c13b0897a44ec9904511e7e57f9eb5b2fd0d85dd2bd1371b226f488595ae2847764591754d6db4b50eaf8328fd2aeecce7ebb
7
- data.tar.gz: 077f5217b308db31a118dc21884b65b15112bb9b6922a468ea5658c803e1851df4520aabc71fcdeb4f982dfc7c09955629564b600c2fadcf2d14d4b7e24631f6
6
+ metadata.gz: dc56fc52b8e52553902316fb26204a89a90901a9cf56e13d9ff8a1f2d4aea96d1054d578bda7598ba38384baf424a751230038bd8c6c593b113854a176cafeb7
7
+ data.tar.gz: 07a33c2ea3d3fdf5f69e9844d7c45dbb88cfedfabd8ce9264408876ee7496568033d372128eba510431bbb749c4223a8ba5420941936f2efd304ded398c90ad0
@@ -212,12 +212,15 @@ module Bolt
212
212
 
213
213
  private def validate_ps_version
214
214
  if Bolt::Util.powershell?
215
- target = inventory.get_target('localhost')
216
- Bolt::Transport::Local.new.with_connection(target) do |conn|
217
- # This will automatically validate the powershell version on the Bolt
218
- # controller
219
- Bolt::Shell::Powershell.new(target, conn)
220
- end
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
 
@@ -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")
@@ -63,7 +63,7 @@ module Bolt
63
63
  end
64
64
 
65
65
  def start_spin
66
- return unless @spin
66
+ return unless @spin && @stream.isatty
67
67
  @spin = true
68
68
  @spin_thread = Thread.new do
69
69
  loop do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '2.40.1'
4
+ VERSION = '2.40.2'
5
5
  end
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "input_method": {
39
39
  "type": "string",
40
- "enum": ["stdin", "environment", "powershell"],
40
+ "enum": ["stdin", "environment", "powershell", "both"],
41
41
  "description": "What input method should be used to pass params to the task"
42
42
  }
43
43
  }
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.1
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: '0.4'
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: '0.4'
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.3
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