Sha256: 8a0bce65d98db8952b04d79fabca3126e66fa6fe8a4e6a2d134d9d080242eafc
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
class Domain < Thor desc 'list [NAME]', 'list domains' def list(name = nil) cs_cli = CloudstackCli::Helper.new(options[:config]) domains = cs_cli.domains(name) if domains.size < 1 puts "No domains found" else domains.each do |domain| puts "#{domain['name']}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.0.3 | lib/cloudstack-cli/commands/domain.rb |
cloudstack-cli-0.0.2 | lib/cloudstack-cli/commands/domain.rb |