Sha256: feabd1aa7d1258f7a84e4d9962b3ab3d8467f361c7afc92957391bb3a3c04436

Contents?: true

Size: 524 Bytes

Versions: 6

Compression:

Stored size: 524 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

6 entries across 6 versions & 1 rubygems

Version Path
cloudstack-cli-0.3.1 lib/cloudstack-cli/commands/disk_offering.rb
cloudstack-cli-0.2.2 lib/cloudstack-cli/commands/disk_offering.rb
cloudstack-cli-0.2.1 lib/cloudstack-cli/commands/disk_offering.rb
cloudstack-cli-0.2.0 lib/cloudstack-cli/commands/disk_offering.rb
cloudstack-cli-0.1.7 lib/cloudstack-cli/commands/disk_offering.rb
cloudstack-cli-0.1.6 lib/cloudstack-cli/commands/disk_offering.rb