Sha256: 824e0bbba98e471dd687587e363955954b869f1165c9a895b7aa5243d866955a
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
module Fog module VcloudDirector module Generators module Compute # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/VAppType.html class Vapp attr_reader :name, :options def initialize(name, options={}) @name = name @options = options end def generate_xml Nokogiri::XML::Builder.new do VApp('xmlns' => 'http://www.vmware.com/vcloud/v1.5', 'name' => name ) { Description options[:Description] if options.key?(:Description) } end.to_xml end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vcloud-director-0.3.1 | lib/fog/vcloud_director/generators/compute/vapp.rb |
fog-vcloud-director-0.3.0 | lib/fog/vcloud_director/generators/compute/vapp.rb |