morpheus-cli 3.6.6 → 3.6.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/cli/apps.rb +10 -10
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fb66614a0f521d326378762305f731b8feaba20f65f5b08795a65389edab957
|
4
|
+
data.tar.gz: 4fca1eda17c8916ec93d937a893d9d7e3793c913a8058db434043b443c0e8773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4e3064928cbdc7679746463fb078e1b74818caeee2f3141b19bcdbb0f357924340883a321e67da830dcca4cc958e78fd5cd4f79c4c5674569ad2bb400bc4bb
|
7
|
+
data.tar.gz: c2e8593449ecab682f3346dfbacad7d0a6b63aea6ce2a16fcf6e52f07fd982e65d4c7a3fb06cd5332733b51404fa084301c12e5c975a8bcbfa14ed0414059f39
|
data/lib/morpheus/cli/apps.rb
CHANGED
@@ -1472,20 +1472,20 @@ class Morpheus::Cli::Apps
|
|
1472
1472
|
|
1473
1473
|
def format_app_status(app, return_color=cyan)
|
1474
1474
|
out = ""
|
1475
|
-
status_string = app['status']
|
1476
|
-
if
|
1477
|
-
|
1478
|
-
out << "#{white}EMPTY#{return_color}"
|
1479
|
-
elsif status_string == 'running'
|
1480
|
-
out << "#{green}#{status_string.upcase}#{return_color}"
|
1475
|
+
status_string = app['status'] || app['appStatus'] || ''
|
1476
|
+
if status_string == 'running'
|
1477
|
+
out = "#{green}#{status_string.upcase}#{return_color}"
|
1481
1478
|
elsif status_string == 'provisioning'
|
1482
|
-
|
1479
|
+
out = "#{cyan}#{status_string.upcase}#{cyan}"
|
1483
1480
|
elsif status_string == 'stopped' or status_string == 'failed'
|
1484
|
-
out
|
1481
|
+
out = "#{red}#{status_string.upcase}#{return_color}"
|
1485
1482
|
elsif status_string == 'unknown'
|
1486
|
-
out
|
1483
|
+
out = "#{yellow}#{status_string.upcase}#{return_color}"
|
1484
|
+
elsif status_string == 'warning' && app['instanceCount'].to_i == 0
|
1485
|
+
# show this instead of WARNING
|
1486
|
+
out = "#{cyan}EMPTY#{return_color}"
|
1487
1487
|
else
|
1488
|
-
out
|
1488
|
+
out = "#{yellow}#{status_string.upcase}#{return_color}"
|
1489
1489
|
end
|
1490
1490
|
out
|
1491
1491
|
end
|
data/lib/morpheus/cli/version.rb
CHANGED