Sha256: 40f0f5f90b4dcc3971c32bd750103b766c4bf6c22669ec6312ed78544b10cca7
Contents?: true
Size: 459 Bytes
Versions: 16
Compression:
Stored size: 459 Bytes
Contents
class Cluster < CloudstackCli::Base desc '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
16 entries across 16 versions & 1 rubygems