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

Version Path
cloudstack-cli-0.5.8 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.5 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.4 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.3 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.2 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.1 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.5.0 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.10 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.9 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.8 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.7 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.6 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.5 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.4 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.3 lib/cloudstack-cli/commands/cluster.rb
cloudstack-cli-0.3.2 lib/cloudstack-cli/commands/cluster.rb