Sha256: 0ef49dfc4bd4f888eca001801307fc37333108e4b3727281bb26e3b058f6595a
Contents?: true
Size: 579 Bytes
Versions: 29
Compression:
Stored size: 579 Bytes
Contents
class DiskOffer < 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 say "Total number of offerings: #{offerings.size}" end end end
Version data entries
29 entries across 29 versions & 1 rubygems