Class: Ey::Core::Cli::Accounts

Inherits:
Subcommand
  • Object
show all
Defined in:
lib/ey-core/cli/accounts.rb

Instance Method Summary collapse

Methods inherited from Subcommand

#handle_core_error, #run_handle, #setup

Methods included from Helpers::Core

#core_account, #core_accounts, #core_application_for, #core_client, #core_environment_for, #core_operator_and_environment_for, #core_server_for, #core_url, #core_yaml, #eyrc_yaml, included, #longest_length_by_name, #operator, #unauthenticated_core_client, #write_core_yaml

Instance Method Details

#handleObject



10
11
12
13
# File 'lib/ey-core/cli/accounts.rb', line 10

def handle
  table_data = TablePrint::Printer.new(core_accounts, [{id: {width: 36}}, :name])
  puts table_data.table_print
end