Sha256: 5ff3f008cfbe488fa4458213131055f466977371cc1b730c65138df8d14a514b

Contents?: true

Size: 404 Bytes

Versions: 16

Compression:

Stored size: 404 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
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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