Class: Rncher::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/rncher/app.rb

Instance Method Summary collapse

Instance Method Details

#listObject



5
6
7
8
9
10
11
# File 'lib/rncher/app.rb', line 5

def list
  table = TTY::Table.new header: ['id','name','state']
  App.where(system: false).each do |app|
    table <<  [app.id, app.name, app.state]
  end
  puts table.render(:ascii, border:{separator: :each_row})
end