Sha256: 1c103564359ce0ac228ab290298da5ad2ab3bff4e6f359ae9582d82add4207a2
Contents?: true
Size: 367 Bytes
Versions: 12
Compression:
Stored size: 367 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
12 entries across 12 versions & 1 rubygems