morpheus-cli 4.1.14 → 4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/lib/morpheus/api/api_client.rb +4 -0
- data/lib/morpheus/api/library_container_types_interface.rb +1 -1
- data/lib/morpheus/api/library_instance_types_interface.rb +7 -7
- data/lib/morpheus/api/library_layouts_interface.rb +1 -1
- data/lib/morpheus/api/network_routers_interface.rb +101 -0
- data/lib/morpheus/api/tasks_interface.rb +12 -14
- data/lib/morpheus/cli.rb +1 -0
- data/lib/morpheus/cli/apps.rb +15 -12
- data/lib/morpheus/cli/cli_command.rb +40 -2
- data/lib/morpheus/cli/clusters.rb +13 -7
- data/lib/morpheus/cli/cypher_command.rb +5 -2
- data/lib/morpheus/cli/hosts.rb +1 -1
- data/lib/morpheus/cli/instances.rb +21 -5
- data/lib/morpheus/cli/jobs_command.rb +83 -27
- data/lib/morpheus/cli/library_cluster_layouts_command.rb +12 -12
- data/lib/morpheus/cli/library_container_scripts_command.rb +52 -40
- data/lib/morpheus/cli/library_container_types_command.rb +2 -60
- data/lib/morpheus/cli/library_instance_types_command.rb +22 -1
- data/lib/morpheus/cli/library_layouts_command.rb +65 -65
- data/lib/morpheus/cli/library_option_lists_command.rb +72 -59
- data/lib/morpheus/cli/library_option_types_command.rb +30 -186
- data/lib/morpheus/cli/library_spec_templates_command.rb +39 -64
- data/lib/morpheus/cli/mixins/library_helper.rb +213 -0
- data/lib/morpheus/cli/mixins/provisioning_helper.rb +89 -37
- data/lib/morpheus/cli/mixins/whoami_helper.rb +16 -1
- data/lib/morpheus/cli/network_routers_command.rb +1281 -0
- data/lib/morpheus/cli/networks_command.rb +164 -72
- data/lib/morpheus/cli/option_types.rb +187 -73
- data/lib/morpheus/cli/price_sets_command.rb +4 -4
- data/lib/morpheus/cli/prices_command.rb +15 -15
- data/lib/morpheus/cli/remote.rb +3 -3
- data/lib/morpheus/cli/service_plans_command.rb +17 -8
- data/lib/morpheus/cli/tasks.rb +437 -169
- data/lib/morpheus/cli/version.rb +1 -1
- data/lib/morpheus/formatters.rb +8 -0
- metadata +6 -3
data/lib/morpheus/cli/version.rb
CHANGED
data/lib/morpheus/formatters.rb
CHANGED
@@ -3,6 +3,7 @@ require 'filesize'
|
|
3
3
|
require 'money'
|
4
4
|
|
5
5
|
DEFAULT_TIME_FORMAT = "%x %I:%M %p"
|
6
|
+
ALTERNATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'"
|
6
7
|
|
7
8
|
# returns an instance of Time
|
8
9
|
def parse_time(dt, format=nil)
|
@@ -27,6 +28,13 @@ def parse_time(dt, format=nil)
|
|
27
28
|
err = e
|
28
29
|
end
|
29
30
|
end
|
31
|
+
if !result
|
32
|
+
begin
|
33
|
+
result = Time.strptime(dt, ALTERNATE_TIME_FORMAT)
|
34
|
+
rescue => e
|
35
|
+
err = e
|
36
|
+
end
|
37
|
+
end
|
30
38
|
end
|
31
39
|
if result
|
32
40
|
return result
|
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: 4.
|
4
|
+
version: '4.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-
|
14
|
+
date: 2020-03-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- lib/morpheus/api/network_pool_servers_interface.rb
|
240
240
|
- lib/morpheus/api/network_pools_interface.rb
|
241
241
|
- lib/morpheus/api/network_proxies_interface.rb
|
242
|
+
- lib/morpheus/api/network_routers_interface.rb
|
242
243
|
- lib/morpheus/api/network_security_servers_interface.rb
|
243
244
|
- lib/morpheus/api/network_services_interface.rb
|
244
245
|
- lib/morpheus/api/network_subnets_interface.rb
|
@@ -378,6 +379,7 @@ files:
|
|
378
379
|
- lib/morpheus/cli/network_pool_servers_command.rb
|
379
380
|
- lib/morpheus/cli/network_pools_command.rb
|
380
381
|
- lib/morpheus/cli/network_proxies_command.rb
|
382
|
+
- lib/morpheus/cli/network_routers_command.rb
|
381
383
|
- lib/morpheus/cli/network_services_command.rb
|
382
384
|
- lib/morpheus/cli/networks_command.rb
|
383
385
|
- lib/morpheus/cli/option_parser.rb
|
@@ -439,7 +441,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
441
|
- !ruby/object:Gem::Version
|
440
442
|
version: '0'
|
441
443
|
requirements: []
|
442
|
-
|
444
|
+
rubyforge_project:
|
445
|
+
rubygems_version: 2.7.6
|
443
446
|
signing_key:
|
444
447
|
specification_version: 4
|
445
448
|
summary: Provides CLI Interface to the Morpheus Public/Private Cloud Appliance
|