morpheus-cli 3.3.2.6.2 → 3.3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morpheus/api/api_client.rb +4 -0
- data/lib/morpheus/api/cloud_datastores_interface.rb +47 -0
- data/lib/morpheus/api/virtual_images_interface.rb +2 -2
- data/lib/morpheus/cli.rb +1 -0
- data/lib/morpheus/cli/app_templates.rb +5 -15
- data/lib/morpheus/cli/cli_command.rb +5 -1
- data/lib/morpheus/cli/cloud_datastores_command.rb +399 -0
- data/lib/morpheus/cli/containers_command.rb +2 -8
- data/lib/morpheus/cli/hosts.rb +10 -21
- data/lib/morpheus/cli/instance_types.rb +4 -10
- data/lib/morpheus/cli/instances.rb +14 -34
- data/lib/morpheus/cli/library_container_scripts_command.rb +5 -12
- data/lib/morpheus/cli/library_container_templates_command.rb +4 -10
- data/lib/morpheus/cli/library_container_types_command.rb +4 -10
- data/lib/morpheus/cli/library_instance_types_command.rb +4 -10
- data/lib/morpheus/cli/library_layouts_command.rb +4 -10
- data/lib/morpheus/cli/library_option_types_command.rb +2 -5
- data/lib/morpheus/cli/library_upgrades_command.rb +4 -10
- data/lib/morpheus/cli/load_balancers.rb +4 -16
- data/lib/morpheus/cli/monitoring_apps_command.rb +5 -14
- data/lib/morpheus/cli/monitoring_checks_command.rb +13 -33
- data/lib/morpheus/cli/monitoring_contacts_command.rb +10 -11
- data/lib/morpheus/cli/monitoring_groups_command.rb +19 -38
- data/lib/morpheus/cli/monitoring_incidents_command.rb +37 -66
- data/lib/morpheus/cli/network_domains_command.rb +7 -16
- data/lib/morpheus/cli/network_groups_command.rb +6 -16
- data/lib/morpheus/cli/network_pool_servers_command.rb +6 -16
- data/lib/morpheus/cli/network_pools_command.rb +6 -16
- data/lib/morpheus/cli/network_proxies_command.rb +6 -16
- data/lib/morpheus/cli/network_services_command.rb +4 -11
- data/lib/morpheus/cli/networks_command.rb +6 -16
- data/lib/morpheus/cli/packages_command.rb +148 -13
- data/lib/morpheus/cli/policies_command.rb +6 -16
- data/lib/morpheus/cli/power_scheduling_command.rb +6 -24
- data/lib/morpheus/cli/recent_activity_command.rb +19 -19
- data/lib/morpheus/cli/remote.rb +7 -8
- data/lib/morpheus/cli/storage_providers_command.rb +6 -16
- data/lib/morpheus/cli/tasks.rb +4 -12
- data/lib/morpheus/cli/user_groups_command.rb +7 -25
- data/lib/morpheus/cli/user_sources_command.rb +9 -21
- data/lib/morpheus/cli/users.rb +6 -17
- data/lib/morpheus/cli/version.rb +1 -1
- data/lib/morpheus/cli/workflows.rb +4 -12
- metadata +4 -2
data/lib/morpheus/cli/version.rb
CHANGED
@@ -46,19 +46,13 @@ class Morpheus::Cli::Workflows
|
|
46
46
|
task_sets = json_response['taskSets']
|
47
47
|
# print result and return output
|
48
48
|
if options[:json]
|
49
|
-
|
50
|
-
json_response = {"taskSets" => filter_data(json_response["taskSets"], options[:include_fields]) }
|
51
|
-
end
|
52
|
-
puts as_json(json_response, options)
|
49
|
+
puts as_json(json_response, options, "taskSets")
|
53
50
|
return 0
|
54
51
|
elsif options[:csv]
|
55
52
|
puts records_as_csv(json_response['taskSets'], options)
|
56
53
|
return 0
|
57
54
|
elsif options[:yaml]
|
58
|
-
|
59
|
-
json_response = {"taskSets" => filter_data(json_response["taskSets"], options[:include_fields]) }
|
60
|
-
end
|
61
|
-
puts as_yaml(json_response, options)
|
55
|
+
puts as_yaml(json_response, options, "taskSets")
|
62
56
|
return 0
|
63
57
|
else
|
64
58
|
task_sets = json_response['taskSets']
|
@@ -160,12 +154,10 @@ class Morpheus::Cli::Workflows
|
|
160
154
|
end
|
161
155
|
workflow = json_response['taskSet']
|
162
156
|
if options[:json]
|
163
|
-
json_response
|
164
|
-
puts as_json(json_response, options)
|
157
|
+
puts as_json(json_response, options, "taskSet")
|
165
158
|
return 0
|
166
159
|
elsif options[:yaml]
|
167
|
-
json_response
|
168
|
-
puts as_yaml(json_response, options)
|
160
|
+
puts as_yaml(json_response, options, "taskSet")
|
169
161
|
return 0
|
170
162
|
elsif options[:csv]
|
171
163
|
puts records_as_csv([json_response['taskSet']], options)
|
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: 3.3.2.
|
4
|
+
version: 3.3.2.7
|
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: 2018-06-
|
14
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/morpheus/api/archive_buckets_interface.rb
|
150
150
|
- lib/morpheus/api/archive_files_interface.rb
|
151
151
|
- lib/morpheus/api/auth_interface.rb
|
152
|
+
- lib/morpheus/api/cloud_datastores_interface.rb
|
152
153
|
- lib/morpheus/api/cloud_policies_interface.rb
|
153
154
|
- lib/morpheus/api/clouds_interface.rb
|
154
155
|
- lib/morpheus/api/containers_interface.rb
|
@@ -216,6 +217,7 @@ files:
|
|
216
217
|
- lib/morpheus/cli/boot_scripts_command.rb
|
217
218
|
- lib/morpheus/cli/cli_command.rb
|
218
219
|
- lib/morpheus/cli/cli_registry.rb
|
220
|
+
- lib/morpheus/cli/cloud_datastores_command.rb
|
219
221
|
- lib/morpheus/cli/clouds.rb
|
220
222
|
- lib/morpheus/cli/coloring_command.rb
|
221
223
|
- lib/morpheus/cli/command_error.rb
|