Sha256: 6be25efd6871ba49f970521047a9e66ac3b5fc6398a4da283a3fdea8c0eb2117
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
class Account < Thor desc 'list [NAME]', 'list accounts' def list(name = nil) cs_cli = CloudstackCli::Helper.new 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.0.1 | lib/cloudstack-cli/commands/account.rb |