Sha256: a818080be81f8fe39c6d2280161286671e5ba16f732307e56bbe2561e561fee9

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

class Account < Thor

  desc 'account list [NAME]', 'list accounts'
  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 |account|
        puts "#{account['name']} - #{account['domain']}"
      end
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cloudstack-cli-0.0.5 lib/cloudstack-cli/commands/account.rb
cloudstack-cli-0.0.4 lib/cloudstack-cli/commands/account.rb