Sha256: 3655ffd1b3d4292e3fafc781364e5161ed750797d3ed0ab9909ff2a61c8e1395
Contents?: true
Size: 525 Bytes
Versions: 9
Compression:
Stored size: 525 Bytes
Contents
class DiskOffering < CloudstackCli::Base desc 'list', 'list disk offerings' option :domain def list offerings = client.list_disk_offerings(options[:domain]) if offerings.size < 1 puts "No offerings found." else table = [["Name", "Displaytext", "Domain", "ID"]] offerings.each do |offering| table << [ offering["name"], offering["displaytext"], offering["domain"], offering["id"] ] end print_table table end end end
Version data entries
9 entries across 9 versions & 1 rubygems