Sha256: 86a3763b78cb717e65eac1408b532946da6d34072673aa1a9c40d26c64c5a26c

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

class Domain < CloudstackCli::Base

  desc 'domain list [NAME]', 'list domains'
  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
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.4.3 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.4.2 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.4.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.4.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.11 lib/cloudstack-cli/commands/domain.rb