Sha256: e0e27803ce2b5e974f0cfd86d6a3c62463cc7051306984ae3a5e262c660e217b

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

class Domain < Thor

  desc 'domain 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.5 lib/cloudstack-cli/commands/domain.rb
cloudstack-cli-0.0.4 lib/cloudstack-cli/commands/domain.rb