Class: Account
- Inherits:
-
Thor
- Object
- Thor
- Account
- 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([:config]) accounts = cs_cli.list_accounts(name) if accounts.size < 1 puts "No accounts found" else accounts.each do |account| puts "#{account['name']} - #{account['domain']}" end end end |