Class: Stable::Commands::List

Inherits:
Object
  • Object
show all
Defined in:
lib/stable/commands/list.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/stable/commands/list.rb', line 6

def call
  apps = Services::AppRegistry.all

  if apps.empty?
    puts 'No apps registered.'
    return
  end

  print_header

  apps.each do |app|
    puts format_row(app)
  end
end