class Ey::Core::Cli::Applications

Public Instance Methods

handle() click to toggle source
# File lib/ey-core/cli/applications.rb, line 16
def handle
  table_data = TablePrint::Printer.new(
    applications,
    [{id: {width: 10}}, :name]
  )

  puts table_data.table_print
end

Private Instance Methods

applications() click to toggle source
# File lib/ey-core/cli/applications.rb, line 26
def applications
  if option(:account)
    core_account.applications.all
  else
    core_accounts.map(&:applications).flatten.sort_by(&:id)
  end
end