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