Class: Domain
- Inherits:
-
CloudstackCli::Base
- Object
- Thor
- CloudstackCli::Base
- Domain
- Defined in:
- lib/cloudstack-cli/commands/domain.rb
Instance Attribute Summary
Attributes inherited from CloudstackCli::Base
Instance Method Summary collapse
Instance Method Details
#list(name = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cloudstack-cli/commands/domain.rb', line 4 def list(name = nil) domains = client.list_domains(name) if domains.size < 1 puts "No domains found" else table = [["Name", "Path"]] domains.each do |domain| table << [domain['name'], domain['path']] end print_table table end end |