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 +4 -4
- data/Dockerfile +1 -1
- data/lib/morpheus/cli/groups.rb +1 -1
- data/lib/morpheus/cli/hosts.rb +2 -12
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25ca8fc7cabb51b4042eb212172b60191d6863cf9310ffce4e386d016692f7f1
|
|
4
|
+
data.tar.gz: d1183424bef986bb22123d60b45e97ed077c8ea30c5bfd249f8bf503c0a22d13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d006acc9447822675c3593de443679ac2eee514bf1ffe041ddfa5ddc44223e8edfbbeee9393056c59fb98c14d4beb240b0ce9725a3bcc56eb5e1095066d15d1c
|
|
7
|
+
data.tar.gz: ca41986fc3561f562b799971514b92dfe08027e06ad5443b0e116713fee9132d62b84905c929209be03a7dc0f3855e97adf7fe053e64832067addca692ef4268
|
data/Dockerfile
CHANGED
data/lib/morpheus/cli/groups.rb
CHANGED
|
@@ -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)
|
data/lib/morpheus/cli/hosts.rb
CHANGED
|
@@ -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', '--
|
|
58
|
-
options[:
|
|
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
|
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: 5.0.
|
|
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-
|
|
14
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: bundler
|