Class: Account

Inherits:
Thor
  • Object
show all
Defined in:
lib/cloudstack-cli/commands/account.rb

Instance Method Summary collapse

Instance Method Details

#list(name = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cloudstack-cli/commands/account.rb', line 4

def list(name = nil)
  cs_cli = CloudstackCli::Helper.new(options[:config])
  accounts = cs_cli.list_accounts(name)
  if accounts.size < 1
    puts "No accounts found"
  else
    accounts.each do ||
      puts "#{['name']} - #{['domain']}"
    end
  end
end