Sha256: d5d363d302529d5f02fcc9302a2edf311b5ca3ccf371214285a4efcdc0de1724

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 Bytes

Contents

class Pod < CloudstackCli::Base

  desc 'pod 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
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.4.3 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.4.2 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.4.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.4.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-0.3.11 lib/cloudstack-cli/commands/pod.rb