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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41e5e60229896649507f3df02222124865c803ff
4
- data.tar.gz: c4eef70518c898cf317d99c3148bbbb0b57af624
3
+ metadata.gz: bd692a97b1bbed2d5e8ea4bbd23cdcd9a978fdcd
4
+ data.tar.gz: 31761018c7d726c6f72dcf0a104eab21d441be08
5
5
  SHA512:
6
- metadata.gz: 673e4e27f7a0dc245ead08bb40bf4f7ab67c5a73c4ac81d283c29659b66fe1a7b932c6bc62ea1e417ee3b4317e34d6117c98dc6d3958e67fab0ef292e45d3d38
7
- data.tar.gz: 74b88bc851e272d82a46f2f8341b335c74cecdc5c6ada550bd8b973bd4a2fb6a0aa3dfb83a7092e1c4a138457f1ef874b32a4d1c58e94ae06fe0bc854d8385bd
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 JSON', String, "Payload JSON, skip all prompting") do |val|
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|
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.1.2"
4
+ VERSION = "3.1.2.1"
5
5
  end
6
6
  end
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-13 00:00:00.000000000 Z
14
+ date: 2017-12-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler