Class: Fog::Generators::Compute::VcloudDirector::RecomposeVapp

Inherits:
Object
  • Object
show all
Includes:
ComposeCommon
Defined in:
lib/fog/vcloud_director/generators/compute/recompose_vapp.rb

Overview

Instance Method Summary collapse

Methods included from ComposeCommon

#initialize

Instance Method Details

#generate_xmlObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/vcloud_director/generators/compute/recompose_vapp.rb', line 12

def generate_xml
  Nokogiri::XML::Builder.new do |xml|
    xml.RecomposeVAppParams(vapp_attrs) {
      if has_source_items?
        build_vapp_instantiation_params(xml)
        build_source_items(xml)
      end
      build_delete_items(xml)
    }
  end.to_xml
end