Sha256: cb85f9dab3a7d4b643b72b0c5531446ca74737682585c098c3a45bdf494dad6a
Contents?: true
Size: 796 Bytes
Versions: 25
Compression:
Stored size: 796 Bytes
Contents
require 'fog/core/model' module Fog module Compute class VcloudDirector class CatalogItem < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :vapp_template_id def vapp_template requires :id service.vapp_templates.get(self.vapp_template_id) end def instantiate(vapp_name, options={}) response = service.instantiate_vapp_template(vapp_name, vapp_template_id, options) service.process_task(response.body[:Tasks][:Task]) response.body[:href].split('/').last # returns the vapp_id if it was instantiated successfully . end end end end end
Version data entries
25 entries across 23 versions & 4 rubygems