Sha256: e0a03c709202484530f801524305e4904b13dc2faf5df9cc829ef6f413b53589

Contents?: true

Size: 421 Bytes

Versions: 29

Compression:

Stored size: 421 Bytes

Contents

class Domain < CloudstackCli::Base

  desc '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
      say "Total number of domains: #{domains.size}"
    end
  end
  
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
cloudstack-cli-0.15.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.15.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.14.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.14.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.13.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.13.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.12.3 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.12.2 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.12.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.12.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.11.2 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.11.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.11.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.10.2 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.10.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.10.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.9.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.9.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.8.3 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.8.2 lib/cloudstack-cli/commands/domain.rb