morpheus-cli 5.3.0 → 5.3.0.1

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: 4c04cf89b798df6d8dba342efe64eec23b5f97bbeef368072d56829c8b517707
4
- data.tar.gz: 50a9448b2a167439efbd3f3bcd2f0ea91870681986108d975b058a40b5e14d69
3
+ metadata.gz: f860d6a411e83d66114f0c40e20aec9980aa97315af9872f5776686f4def717e
4
+ data.tar.gz: fa2b969306e2345724805ddf065343d46629ec9ab546ee6c502377a7529bc462
5
5
  SHA512:
6
- metadata.gz: 58613849cca0d5994cc866d6de770f0657b65ccbd3961e352ac934f21600f0888be755c70f54cc964a317fa12201a78800eb59447a664ec28df7eb00799cdc1f
7
- data.tar.gz: 01307e6f8b6c91813a948d79b5dedc0914d5731b026d6152ddf1ea59d8ab9a830bca5305a28087623d088787464dc76ee3667673759467a2910723b06645a3b7
6
+ metadata.gz: 4a84820acae372fc570a52750eaa03bb978812a7a40b6303ee85b0537f8fc1105eba5bc944da1f8f0876cae19b2d16c8abfd00fa7685949ef70a051f64c19a4a
7
+ data.tar.gz: de7be6c0d53e63c60e0941265deedca0f86574ed0060f7873fb38c54411daa6c142ba68818710d44fbf34240e0c2c81c0214f0d2d4a18b9346f452762967c7e6
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
1
  FROM ruby:2.5.1
2
2
 
3
- RUN gem install morpheus-cli -v 5.3.0
3
+ RUN gem install morpheus-cli -v 5.3.0.1
4
4
 
5
5
  ENTRYPOINT ["morpheus"]
@@ -934,6 +934,9 @@ class Morpheus::Cli::Clusters
934
934
  end
935
935
  else
936
936
  payload = {"permissions" => prompt_permissions(options.merge({:available_plans => namespace_service_plans}))}
937
+ # if payload["permissions"] && payload["permissions"]["resourcePool"]
938
+ # payload["permissions"].delete("resourcePool")
939
+ # end
937
940
  end
938
941
 
939
942
  @clusters_interface.setopts(options)
@@ -3897,8 +3900,8 @@ class Morpheus::Cli::Clusters
3897
3900
  perms = prompt_permissions(options.merge({:available_plans => namespace_service_plans}))
3898
3901
  if perms['resourcePool'] && !perms['resourcePool']['visibility'].nil?
3899
3902
  rtn['visibility'] = perms['resourcePool']['visibility']
3900
- perms.delete('resourcePool')
3901
3903
  end
3904
+ perms.delete('resourcePool')
3902
3905
  rtn['permissions'] = perms
3903
3906
  rtn
3904
3907
  end
@@ -14,14 +14,14 @@ class Morpheus::Cli::HistoryCommand
14
14
  # AND start logging every terminal command, not just shell...
15
15
  def handle(args)
16
16
  options = {show_pagination:false}
17
- optparse = Morpheus::Cli::OptionParser.new do|opts|
18
- opts.banner = "Usage: morpheus #{command_name} [search]"
17
+ optparse = Morpheus::Cli::OptionParser.new do |opts|
18
+ opts.banner = "Usage: #{prog_name} #{command_name} [search]"
19
19
  # -n is a hidden alias for -m
20
20
  opts.on( '-n', '--max-commands MAX', "Alias for -m, --max option." ) do |val|
21
21
  options[:max] = val
22
22
  end
23
23
  opts.add_hidden_option('-n')
24
- opts.on( '-p', '--pagination', "Display pagination and count info eg. Viewing 1-M of N" ) do
24
+ opts.on( '-p', '--pagination', "Display pagination and count info eg. Viewing 1-25 of 42" ) do
25
25
  options[:show_pagination] = true
26
26
  end
27
27
  opts.on( nil, '--flush', "Flush history, purges entire shell history file." ) do
@@ -38,10 +38,9 @@ Examples:
38
38
  history "instances list"
39
39
  history --flush
40
40
 
41
- The most recently executed commands are seen by default. Use --reverse to see the oldest commands.
41
+ The most recently executed commands are seen by default. Use --desc to see the oldest commands.
42
42
  EOT
43
43
  end
44
- raw_cmd = "#{command_name} #{args.join(' ')}"
45
44
  optparse.parse!(args)
46
45
  # verify_args!(args:args, count: 0, optparse:optparse)
47
46
  if args.count > 0
@@ -427,7 +427,10 @@ class Morpheus::Cli::ServicePlanCommand
427
427
  # permissions
428
428
  if !options[:no_prompt]
429
429
  perms = prompt_permissions(options, ['plans', 'groupDefaults'])
430
- params['visibility'] = perms.delete('resourcePool')['visibility']
430
+ if perms['resourcePool'] && !perms['resourcePool']['visibility'].nil?
431
+ params['visibility'] = perms['resourcePool']['visibility']
432
+ end
433
+ perms.delete('resourcePool')
431
434
  params['permissions'] = perms
432
435
  end
433
436
  payload = {'servicePlan' => params}
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "5.3.0"
4
+ VERSION = "5.3.0.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: 5.3.0
4
+ version: 5.3.0.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: 2021-02-25 00:00:00.000000000 Z
14
+ date: 2021-02-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler