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