bolt 1.27.0 → 1.27.1
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 +13 -11
- data/lib/bolt/inventory/inventory2.rb +1 -1
- data/lib/bolt/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: 479e933992d2ff527a0c863ed9b4e2d6f94f5726e1c1ef910e3de3e4a92f97d3
|
4
|
+
data.tar.gz: 19c0c435262e63acb8d94a4adc59bb1613fe126f2e276c66cca392a6074358c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a44e8201beb5d720068b0217191495141a34e302748358117d308fd8e6bd4906a05f53e653982a08686d1c2b78c673caec5ddecd9cc5d9b60447a594b299dbc2
|
7
|
+
data.tar.gz: 42f6ceb89094cf0aac648133b37d477adc8bfdff54c5941a6c8228793d980e4106959e1179f548f3aea296fbc35f27307fdeb874736b5cf3c76fc3ce23b818ae
|
data/lib/bolt/cli.rb
CHANGED
@@ -88,19 +88,21 @@ module Bolt
|
|
88
88
|
|
89
89
|
options[:object] = remaining.shift
|
90
90
|
|
91
|
-
|
92
|
-
if options[:
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
91
|
+
# Only parse task_options for task or plan
|
92
|
+
if %w[task plan].include?(options[:subcommand])
|
93
|
+
task_options, remaining = remaining.partition { |s| s =~ /.+=/ }
|
94
|
+
if options[:task_options]
|
95
|
+
unless task_options.empty?
|
96
|
+
raise Bolt::CLIError,
|
97
|
+
"Parameters must be specified through either the --params " \
|
98
|
+
"option or param=value pairs, not both"
|
99
|
+
end
|
100
|
+
options[:params_parsed] = true
|
101
|
+
else
|
102
|
+
options[:params_parsed] = false
|
103
|
+
options[:task_options] = Hash[task_options.map { |a| a.split('=', 2) }]
|
97
104
|
end
|
98
|
-
options[:params_parsed] = true
|
99
|
-
else
|
100
|
-
options[:params_parsed] = false
|
101
|
-
options[:task_options] = Hash[task_options.map { |a| a.split('=', 2) }]
|
102
105
|
end
|
103
|
-
|
104
106
|
options[:leftovers] = remaining
|
105
107
|
|
106
108
|
validate(options)
|
data/lib/bolt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.27.
|
4
|
+
version: 1.27.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|