morpheus-cli 5.0.1 → 5.0.2

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: 30d7a10e197c41b49f453d0d43fa28027e8759e8a889b531045626b0ad2157f8
4
- data.tar.gz: f5bc8ef27e0c29feb0fbd9005ce7d013746ecdf005c92a049ff7537301c1fcbf
3
+ metadata.gz: 25ca8fc7cabb51b4042eb212172b60191d6863cf9310ffce4e386d016692f7f1
4
+ data.tar.gz: d1183424bef986bb22123d60b45e97ed077c8ea30c5bfd249f8bf503c0a22d13
5
5
  SHA512:
6
- metadata.gz: 616bb0355ed1a3a6c07f26a8e6aa291cb99f7208f754c94146d8ac08ffc735c7231c081fd4e56bf0c6490c2a0931e10995332023e46f66314213c3af0e5e8545
7
- data.tar.gz: ae11e6b85aa13a6349dc54e6d9421cbe9cde6071332de409570e6796dd2a09da3d932c349652de6adfe5321c88816f066c25aeebc651e6a63bd9106cddde15a3
6
+ metadata.gz: d006acc9447822675c3593de443679ac2eee514bf1ffe041ddfa5ddc44223e8edfbbeee9393056c59fb98c14d4beb240b0ce9725a3bcc56eb5e1095066d15d1c
7
+ data.tar.gz: ca41986fc3561f562b799971514b92dfe08027e06ad5443b0e116713fee9132d62b84905c929209be03a7dc0f3855e97adf7fe053e64832067addca692ef4268
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
1
  FROM ruby:2.5.1
2
2
 
3
- RUN gem install morpheus-cli -v 5.0.1
3
+ RUN gem install morpheus-cli -v 5.0.2
4
4
 
5
5
  ENTRYPOINT ["morpheus"]
@@ -52,7 +52,7 @@ class Morpheus::Cli::Groups
52
52
  end
53
53
  json_response = @groups_interface.list(params)
54
54
  exit_code, err = 0, nil
55
- render_response(json_response, options) do
55
+ render_response(json_response, options, "groups") do
56
56
  groups = json_response['groups']
57
57
  subtitles = []
58
58
  subtitles += parse_list_subtitles(options)
@@ -54,13 +54,9 @@ class Morpheus::Cli::Hosts
54
54
  params = {}
55
55
  optparse = Morpheus::Cli::OptionParser.new do |opts|
56
56
  opts.banner = subcommand_usage()
57
- opts.on('-a', '--all', "Display all details: memory and storage usage used / max values." ) do
58
- options[:details] = true
59
- end
60
- opts.on('--details', "Display all details: alias for --all" ) do
61
- options[:details] = true
57
+ opts.on( '-a', '--account ACCOUNT', "Account Name or ID" ) do |val|
58
+ options[:account] = val
62
59
  end
63
- opts.add_hidden_option('--details')
64
60
  opts.on( '-g', '--group GROUP', "Group Name or ID" ) do |val|
65
61
  options[:group] = val
66
62
  end
@@ -110,9 +106,6 @@ class Morpheus::Cli::Hosts
110
106
  opts.on( '--created-by USER', "Created By User Username or ID" ) do |val|
111
107
  options[:created_by] = val
112
108
  end
113
- opts.on( '--tenant TENANT', "Tenant Name or ID" ) do |val|
114
- options[:account] = val
115
- end
116
109
  opts.on('--details', "Display more details: memory and storage usage used / max values." ) do
117
110
  options[:details] = true
118
111
  end
@@ -215,9 +208,6 @@ class Morpheus::Cli::Hosts
215
208
  multi_tenant = json_response['multiTenant'] == true
216
209
  title = "Morpheus Hosts"
217
210
  subtitles = []
218
- if account
219
- subtitles << "Tenant: #{account['name']}".strip
220
- end
221
211
  if group
222
212
  subtitles << "Group: #{group['name']}".strip
223
213
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "5.0.1"
4
+ VERSION = "5.0.2"
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.0.1
4
+ version: 5.0.2
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-10-21 00:00:00.000000000 Z
14
+ date: 2020-10-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler