Sha256: ba989c66540044002cbcfd80cd2e6e26de383b2cd4f9f633562e87fa61b843a0

Contents?: true

Size: 485 Bytes

Versions: 27

Compression:

Stored size: 485 Bytes

Contents

class Pod < CloudstackCli::Base

  desc 'list', 'list pods'
  option :zone
  def list
    resolve_zone
    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

27 entries across 27 versions & 1 rubygems

Version Path
cloudstack-cli-1.4.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.4.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.3.3 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.3.2 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.3.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.3.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.7 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.6 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.5 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.4 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.3 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.1 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.2.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.1.0 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.8 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.7 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.6 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.5 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.4 lib/cloudstack-cli/commands/pod.rb
cloudstack-cli-1.0.3 lib/cloudstack-cli/commands/pod.rb