morpheus-cli 4.2.19 → 4.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53993967f9a5131702de6bd1d35c1f4f476b87cc56bff1a130737aacca8001a9
|
4
|
+
data.tar.gz: 7a86d5a5a788d57aa6f09d5f567f056d96f530e7d2eb2201b943c9115fa4701b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2ec20a5cd5f47cb1ca3c05867e7063cf5d78fba739467bbc3a8e6e82da0b4a59993a76668ab2e29b518d3aee85a4af3c6859adb150d8eaa643abbb54472214
|
7
|
+
data.tar.gz: 651c4897a8a28d8d476f0c80e73137c9530dc1cfabcc2b59898ee32cbccc27c321676d285825e61c1085630c0cb2abf8be72cb1ddfc86b33764472b3486f759c
|
data/Dockerfile
CHANGED
@@ -326,6 +326,9 @@ class Morpheus::Cli::CloudResourcePoolsCommand
|
|
326
326
|
opts.on('--active [on|off]', String, "Can be used to disable a resource pool") do |val|
|
327
327
|
options['active'] = val.to_s == 'on' || val.to_s == 'true' || val.to_s == ''
|
328
328
|
end
|
329
|
+
opts.on('--default-pool [on|off]', String, "Set resource pool as the default") do |val|
|
330
|
+
options['defaultPool'] = val.to_s == 'on' || val.to_s == 'true' || val.to_s == ''
|
331
|
+
end
|
329
332
|
build_common_options(opts, options, [:options, :payload, :json, :dry_run, :remote])
|
330
333
|
opts.footer = "Update a resource pool." + "\n" +
|
331
334
|
"[cloud] is required. This is the name or id of the cloud."
|
@@ -437,6 +440,11 @@ class Morpheus::Cli::CloudResourcePoolsCommand
|
|
437
440
|
else
|
438
441
|
payload['resourcePool']['active'] = true
|
439
442
|
end
|
443
|
+
|
444
|
+
# Default
|
445
|
+
if options['defaultPool'] != nil
|
446
|
+
payload['resourcePool']['defaultPool'] = options['defaultPool']
|
447
|
+
end
|
440
448
|
|
441
449
|
# Visibility
|
442
450
|
if options['visibility'] != nil
|
@@ -552,6 +560,9 @@ class Morpheus::Cli::CloudResourcePoolsCommand
|
|
552
560
|
opts.on('--active [on|off]', String, "Can be used to disable a resource pool") do |val|
|
553
561
|
options['active'] = val.to_s == 'on' || val.to_s == 'true' || val.to_s == ''
|
554
562
|
end
|
563
|
+
opts.on('--default-pool [on|off]', String, "Set resource pool as the default") do |val|
|
564
|
+
options['defaultPool'] = val.to_s == 'on' || val.to_s == 'true' || val.to_s == ''
|
565
|
+
end
|
555
566
|
build_common_options(opts, options, [:options, :payload, :json, :dry_run, :remote])
|
556
567
|
opts.footer = "Update a resource pool." + "\n" +
|
557
568
|
"[cloud] is required. This is the name or id of the cloud." + "\n"
|
@@ -641,6 +652,11 @@ class Morpheus::Cli::CloudResourcePoolsCommand
|
|
641
652
|
if options['active'] != nil
|
642
653
|
payload['resourcePool']['active'] = options['active']
|
643
654
|
end
|
655
|
+
|
656
|
+
# Default
|
657
|
+
if options['defaultPool'] != nil
|
658
|
+
payload['resourcePool']['defaultPool'] = options['defaultPool']
|
659
|
+
end
|
644
660
|
|
645
661
|
# Visibility
|
646
662
|
if options['visibility'] != nil
|
@@ -244,15 +244,14 @@ class Morpheus::Cli::LibraryInstanceTypesCommand
|
|
244
244
|
options = {}
|
245
245
|
params = {}
|
246
246
|
logo_file = nil
|
247
|
-
option_type_ids = nil
|
248
247
|
optparse = Morpheus::Cli::OptionParser.new do|opts|
|
249
248
|
opts.banner = subcommand_usage("[name]")
|
250
249
|
build_option_type_options(opts, options, add_instance_type_option_types())
|
251
250
|
opts.on('--option-types [x,y,z]', Array, "List of Option Type IDs") do |list|
|
252
251
|
if list.nil?
|
253
|
-
|
252
|
+
params['optionTypes'] = []
|
254
253
|
else
|
255
|
-
|
254
|
+
params['optionTypes'] = list.collect {|it| it.to_s.strip.empty? ? nil : it.to_s.strip }.compact.uniq
|
256
255
|
end
|
257
256
|
end
|
258
257
|
build_common_options(opts, options, [:options, :payload, :json, :dry_run, :remote])
|
@@ -348,6 +347,13 @@ class Morpheus::Cli::LibraryInstanceTypesCommand
|
|
348
347
|
opts.banner = subcommand_usage("[name] [options]")
|
349
348
|
build_option_type_options(opts, options, update_instance_type_option_types())
|
350
349
|
build_common_options(opts, options, [:options, :json, :dry_run, :remote])
|
350
|
+
opts.on('--option-types [x,y,z]', Array, "List of Option Type IDs") do |list|
|
351
|
+
if list.nil?
|
352
|
+
params['optionTypes'] = []
|
353
|
+
else
|
354
|
+
params['optionTypes'] = list.collect {|it| it.to_s.strip.empty? ? nil : it.to_s.strip }.compact.uniq
|
355
|
+
end
|
356
|
+
end
|
351
357
|
opts.footer = "Update an instance type." + "\n" +
|
352
358
|
"[name] is required. This is the name or id of a instance type."
|
353
359
|
end
|
@@ -375,6 +381,14 @@ class Morpheus::Cli::LibraryInstanceTypesCommand
|
|
375
381
|
params['hasSettings'] = ['on','true','1'].include?(params['hasSettings'].to_s) if params.key?('hasSettings')
|
376
382
|
params['hasAutoScale'] = ['on','true','1'].include?(params['hasAutoScale'].to_s) if params.key?('hasAutoScale')
|
377
383
|
params['hasDeployment'] = ['on','true','1'].include?(params['hasDeployment'].to_s) if params.key?('hasDeployment')
|
384
|
+
if params['optionTypes']
|
385
|
+
prompt_results = prompt_for_option_types(params, options, @api_client)
|
386
|
+
if prompt_results[:success]
|
387
|
+
params['optionTypes'] = prompt_results[:data] unless prompt_results[:data].nil?
|
388
|
+
else
|
389
|
+
return 1
|
390
|
+
end
|
391
|
+
end
|
378
392
|
if params.empty?
|
379
393
|
puts optparse
|
380
394
|
#option_lines = update_instance_type_option_types.collect {|it| "\t-O #{it['fieldName']}=\"value\"" }.join("\n")
|
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: 4.2.
|
4
|
+
version: 4.2.20
|
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: 2020-09-
|
14
|
+
date: 2020-09-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|