Sha256: d9a7d7143661c645ae87ad386c6e2b9195ec9621ede1247ff11eb0ac7d9f332d

Contents?: true

Size: 452 Bytes

Versions: 29

Compression:

Stored size: 452 Bytes

Contents

class Pod < CloudstackCli::Base

  desc 'list', 'list pods'
  def list
    pods = client.list_pods(options)
    if pods.size < 1
      say "No pods found."
    else
      table = [["Name", "Start-IP", "End-IP", "Zone"]]
      pods.each do |pod|
        table << [
        	pod['name'], pod['startip'],
          pod['endip'], pod['zonename']
        ]
      end
      print_table table
      say "Total number of pods: #{pods.count}"
    end
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
cloudstack-cli-0.15.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.15.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.14.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.14.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.13.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.13.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.12.3 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.12.2 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.12.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.12.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.11.2 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.11.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.11.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.10.2 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.10.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.10.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.9.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.9.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.8.3 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.8.2 lib/cloudstack-cli/commands/pod.rb