Sha256: 959a23144cb0d74d477518062b48c3664150a60427c7876148bafa837ff1ea8c

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

class Domain < Thor

  desc 'list [NAME]', 'list domains'
  def list(name = nil)
    cs_cli = CloudstackCli::Helper.new
    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

1 entries across 1 versions & 1 rubygems

Version Path
cloudstack-cli-0.0.1 lib/cloudstack-cli/commands/domain.rb