Sha256: c3eb742db3635e8b6bc33c66a8d6f4775a5a8cf22696f1359fd994f4c3572de3
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
class Cluster < CloudstackCli::Base desc 'cluster list', 'list clusters' def list clusters = client.list_clusters(options) if clusters.size < 1 say "No clusters found." else table = [["Name", "Pod-Name", "Type", "Zone"]] clusters.each do |cluster| table << [ cluster['name'], cluster['podname'], cluster['hypervisortype'], cluster['zonename'] ] end print_table table end end end
Version data entries
5 entries across 5 versions & 1 rubygems