Method: Command::App.status
- Defined in:
- lib/cg/command/app.rb
.status(id = "") ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/cg/command/app.rb', line 25 def self.status(id = "") response = CG::API.show_app_request(id) if response["success"] == false puts "Application not found".red else status = response["active"] puts "Active: #{status}".send(status ? :green : :red) end end |