Method: CF::App::Base#app_status

Defined in:
lib/cf/cli/app/base.rb

#app_status(a) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/cf/cli/app/base.rb', line 24

def app_status(a)
  health = a.health

  if a.debug_mode == "suspend" && health == "0%"
    c("suspended", :neutral)
  else
    c(health.downcase, state_color(health))
  end
end