Sha256: dcdc2bc5b4ff960367d6e89fa0f10fa294ea1f38a14f6d01ccbc317d161813d6
Contents?: true
Size: 631 Bytes
Versions: 27
Compression:
Stored size: 631 Bytes
Contents
class DiskOffer < CloudstackCli::Base desc 'list', 'list disk offerings' option :domain, desc: "the domain of the disk offering" def list resolve_domain offerings = client.list_disk_offerings(options) 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
27 entries across 27 versions & 1 rubygems