morpheus-cli 3.1.2 → 3.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morpheus/cli/cli_command.rb +15 -15
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd692a97b1bbed2d5e8ea4bbd23cdcd9a978fdcd
|
4
|
+
data.tar.gz: 31761018c7d726c6f72dcf0a104eab21d441be08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4f34da720c642384ddc9514d8c8175ba3a68188a8dc3b4b0b99968d3df524f7469f0be0a855a25977e51ddada333011dfb0385a4f810ff5d670e87361cdd76
|
7
|
+
data.tar.gz: 9a754c3209288fac407ab5a86824415ddc31487232631a496436d946fa5061961579653837c93cd29240dc35cad33b0cd006c3f0267d8eb0965ea7cbf1a13e81
|
@@ -233,21 +233,7 @@ module Morpheus
|
|
233
233
|
end
|
234
234
|
|
235
235
|
when :payload
|
236
|
-
opts.on('--payload
|
237
|
-
begin
|
238
|
-
options[:payload] = JSON.parse(val.to_s)
|
239
|
-
rescue => ex
|
240
|
-
raise ::OptionParser::InvalidOption.new("Failed to parse payload as JSON. Error: #{ex.message}")
|
241
|
-
end
|
242
|
-
end
|
243
|
-
opts.on('--payload-yaml YAML', String, "Payload YAML, skip all prompting") do |val|
|
244
|
-
begin
|
245
|
-
options[:payload] = YAML.load(val.to_s)
|
246
|
-
rescue => ex
|
247
|
-
raise ::OptionParser::InvalidOption.new("Failed to parse payload as YAML. Error: #{ex.message}")
|
248
|
-
end
|
249
|
-
end
|
250
|
-
opts.on('--payload-file FILE', String, "Payload from a local JSON or YAML file, skip all prompting") do |val|
|
236
|
+
opts.on('--payload FILE', String, "Payload from a local JSON or YAML file, skip all prompting") do |val|
|
251
237
|
options[:payload_file] = val.to_s
|
252
238
|
begin
|
253
239
|
payload_file = File.expand_path(options[:payload_file])
|
@@ -264,6 +250,20 @@ module Morpheus
|
|
264
250
|
raise ::OptionParser::InvalidOption.new("Failed to parse payload file: #{payload_file} Error: #{ex.message}")
|
265
251
|
end
|
266
252
|
end
|
253
|
+
opts.on('--payload-json JSON', String, "Payload JSON, skip all prompting") do |val|
|
254
|
+
begin
|
255
|
+
options[:payload] = JSON.parse(val.to_s)
|
256
|
+
rescue => ex
|
257
|
+
raise ::OptionParser::InvalidOption.new("Failed to parse payload as JSON. Error: #{ex.message}")
|
258
|
+
end
|
259
|
+
end
|
260
|
+
opts.on('--payload-yaml YAML', String, "Payload YAML, skip all prompting") do |val|
|
261
|
+
begin
|
262
|
+
options[:payload] = YAML.load(val.to_s)
|
263
|
+
rescue => ex
|
264
|
+
raise ::OptionParser::InvalidOption.new("Failed to parse payload as YAML. Error: #{ex.message}")
|
265
|
+
end
|
266
|
+
end
|
267
267
|
|
268
268
|
when :list
|
269
269
|
opts.on( '-m', '--max MAX', "Max Results" ) do |max|
|
data/lib/morpheus/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morpheus-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.2
|
4
|
+
version: 3.1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-12-
|
14
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|