morpheus-cli 6.2.1.1 → 6.2.2

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
  SHA256:
3
- metadata.gz: 7c3a197cce2be26fa8c5920d9dcfb367edab10b100b645c02b171ce830e2eb7f
4
- data.tar.gz: f8467d902d52c8238d3edeae9cf2c6a57eab41e693b76a2742230a9635aa7403
3
+ metadata.gz: 5a11e083645c99cce105a6ee0a38ba60904debd213c3223f07e84a335a755b6a
4
+ data.tar.gz: 318bbfa3ecfa0b2533e29de1a8b773389cac8c7e36c4b75b71316bc1b860aef8
5
5
  SHA512:
6
- metadata.gz: 74ffa8dc07f0960f05790ae69568fbf9ae0b1afbe68bf7b8fea8dd532bd79a6cbafad4e1893c899b41fdef2c48fcb063d539f475b976ec72419279b77e312ce6
7
- data.tar.gz: 7f512bfd99104a127d8e2f67976ad3f221ae9a3c35cf6dd70f7c6002f5b0fe494c961570cdb40ace71abbc3ccff2d09b3a3b582089fc83355da4d95f1fddf9d4
6
+ metadata.gz: 79c6bd2a41bbd7c5fc79dfecd769db385626eea40bcf1ca19d6d4021f0cc57404c8eab74bfc831013f55b0668a1cbce86b909d11b71723a9bfc1587b29beb6c4
7
+ data.tar.gz: 21973cfd06571448876862f243895dc2334f19f5c20355cff9224d4d1c319911776a7d60c93196b1d79e5e16c65b66b1179476b89816931b181bad7e98bbd3dc
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
1
  FROM ruby:2.7.5
2
2
 
3
- RUN gem install morpheus-cli -v 6.2.1.1
3
+ RUN gem install morpheus-cli -v 6.2.2
4
4
 
5
5
  ENTRYPOINT ["morpheus"]
@@ -93,7 +93,7 @@ class Morpheus::Cli::CatalogItemTypesCommand
93
93
  options = {}
94
94
  optparse = Morpheus::Cli::OptionParser.new do |opts|
95
95
  opts.banner = subcommand_usage("[type]")
96
- opts.on( '-c', '--config', "Display raw config only. Default is YAML. Combine with -j for JSON instead." ) do
96
+ opts.on( '-c', '--config', "Display raw config only." ) do
97
97
  options[:show_config] = true
98
98
  end
99
99
  # opts.on('--no-config', "Do not display Config YAML." ) do
@@ -136,13 +136,17 @@ EOT
136
136
  json_response = @catalog_item_types_interface.get(id, params)
137
137
  end
138
138
  catalog_item_type = json_response[catalog_item_type_object_key]
139
- config = catalog_item_type['config'] || {}
140
139
  # export just the config as json or yaml (default)
141
140
  if options[:show_config]
141
+ if catalog_item_type['instanceSpec']
142
+ puts catalog_item_type['instanceSpec']
143
+ # print reset
144
+ return 0, nil
145
+ end
142
146
  unless options[:json] || options[:yaml] || options[:csv]
143
- options[:yaml] = true
147
+ options[:json] = true
144
148
  end
145
- return render_with_format(config, options)
149
+ return render_with_format(catalog_item_type['config'] || {}, options)
146
150
  end
147
151
  render_response(json_response, options, catalog_item_type_object_key) do
148
152
  print_h1 "Catalog Item Type Details", [], options
@@ -172,11 +176,11 @@ EOT
172
176
  item_type_code = catalog_item_type['type'].to_s.downcase
173
177
  if options[:no_config] != true
174
178
  if item_type_code == 'instance'
175
- print_h2 "Config YAML"
176
- if config
179
+ print_h2 "Config JSON"
180
+
177
181
  #print reset,(JSON.pretty_generate(config) rescue config),"\n",reset
178
182
  #print reset,(as_yaml(config, options) rescue config),"\n",reset
179
- config_string = as_yaml(config, options) rescue config
183
+ config_string = catalog_item_type['instanceSpec'] || (as_json(catalog_item_type['config'], options) rescue "")
180
184
  config_lines = config_string.split("\n")
181
185
  config_line_count = config_lines.size
182
186
  max_lines = 10
@@ -191,9 +195,7 @@ EOT
191
195
  config_string = config_string[4..-1]
192
196
  end
193
197
  print reset,config_string.chomp("\n"),"\n",reset
194
- else
195
- print reset,"(blank)","\n",reset
196
- end
198
+
197
199
  elsif item_type_code == 'blueprint' || item_type_code == 'apptemplate' || item_type_code == 'app'
198
200
  print_h2 "App Spec"
199
201
  if catalog_item_type['appSpec']
@@ -6,7 +6,7 @@ class Morpheus::Cli::PluginsCommand
6
6
 
7
7
  set_command_name :plugins
8
8
  set_command_description "View and manage plugins."
9
- register_subcommands :list, :get, :upload, :update, :remove, :'check-updates'
9
+ register_subcommands :list, :get, :upload, :update, :remove #, :'check-updates'
10
10
 
11
11
  # RestCommand settings
12
12
  register_interfaces :plugins
@@ -759,7 +759,7 @@ EOT
759
759
  end
760
760
  build_common_options(opts, options, [:quiet])
761
761
  opts.footer = <<-EOT
762
- Clone remote appliance configuratio, including any existing credentials.
762
+ Clone remote appliance configuration, including any existing credentials.
763
763
  [remote] is required. This is the name of an existing remote.
764
764
  [name] is optional. This is the name of the new remote that will be created.
765
765
  EOT
@@ -34,7 +34,7 @@ View the remote appliance in a web browser.
34
34
  [id] is optional. This is the resource name or id to be append to the path to load details of a specific object.
35
35
  The [path] is matched against the #{prog_name} UI site map to find the best matching route.
36
36
  Route matching is skipped if the path begins with a "/" or --absolute is used.
37
- By default no authentication is not done and the existing web browser session used.
37
+ By default no authentication is done and the existing web browser session used.
38
38
  The --login option will authenticate via the CLI access token and create a new browser session.
39
39
 
40
40
  Examples:
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "6.2.1.1"
4
+ VERSION = "6.2.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: 6.2.1.1
4
+ version: 6.2.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: 2023-09-07 00:00:00.000000000 Z
14
+ date: 2023-09-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler