Sha256: e10c4b2e599caa72422bac89af784fca7990829d4a8065fb9efc775afba06615

Contents?: true

Size: 368 Bytes

Versions: 16

Compression:

Stored size: 368 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
    end
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cloudstack-cli-0.5.8 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.5 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.4 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.3 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.2 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.1 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.5.0 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.10 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.9 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.8 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.7 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.6 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.5 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.4 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.3 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.3.2 lib/cloudstack-cli/commands/domain.rb