morpheus-cli 3.6.6 → 3.6.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6da8f8d23212139cce4d64119553bfa16acfaeecb64eee54d6607f0f3e9e9171
4
- data.tar.gz: b63b976a649deffd4cfeb86290a3573f60ca838697763b7721020f5bdb0b3f50
3
+ metadata.gz: 7fb66614a0f521d326378762305f731b8feaba20f65f5b08795a65389edab957
4
+ data.tar.gz: 4fca1eda17c8916ec93d937a893d9d7e3793c913a8058db434043b443c0e8773
5
5
  SHA512:
6
- metadata.gz: 137db6bddd24c7a6521e70e592ef2f8110cd8f14ec65d7c1777af8ff04bffc57fd73216d2416ad2365ac7173f6dd61707069ed0f610a683049f0ade41c1d09ff
7
- data.tar.gz: 5e8dbd46a7c628ba8c658276c2dd08e28c51573a642888030f0340e36d4a00a5fc18ac34c76ff6d91ca3c0d0374a8c5e1f65d2524db914333fd5b09ed2eb6331
6
+ metadata.gz: 6e4e3064928cbdc7679746463fb078e1b74818caeee2f3141b19bcdbb0f357924340883a321e67da830dcca4cc958e78fd5cd4f79c4c5674569ad2bb400bc4bb
7
+ data.tar.gz: c2e8593449ecab682f3346dfbacad7d0a6b63aea6ce2a16fcf6e52f07fd982e65d4c7a3fb06cd5332733b51404fa084301c12e5c975a8bcbfa14ed0414059f39
@@ -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 app['instanceCount'].to_i == 0
1477
- # show this instead of WARNING
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
- status_string = "#{cyan}#{status_string.upcase}#{cyan}"
1479
+ out = "#{cyan}#{status_string.upcase}#{cyan}"
1483
1480
  elsif status_string == 'stopped' or status_string == 'failed'
1484
- out << "#{red}#{status_string.upcase}#{return_color}"
1481
+ out = "#{red}#{status_string.upcase}#{return_color}"
1485
1482
  elsif status_string == 'unknown'
1486
- out << "#{white}#{status_string.upcase}#{return_color}"
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 << "#{yellow}#{status_string.upcase}#{return_color}"
1488
+ out = "#{yellow}#{status_string.upcase}#{return_color}"
1489
1489
  end
1490
1490
  out
1491
1491
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.6.6"
4
+ VERSION = "3.6.7"
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: 3.6.6
4
+ version: 3.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes