Method: App42::Command::Info#state
- Defined in:
- lib/app42/command/info.rb
#state ⇒ Object
show app status information
Examples:
$ app42 status –app APP
Demo status
running
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/app42/command/info.rb', line 53 def state [:name] = get_app_name if [:name].nil? rows = [] rows_header = nil app_status = app_information 'app', [:name] rows_header = Array('State') rows << Array(app_status['appInfo']['appStatus']) table = Terminal::Table.new :title => Paint["=== #{@options[:name]} State ===", :green], :rows => rows puts table end |