lib/vcloud-rest/vcloud/vapp.rb
def get_vapp_template(vAppId)
      params = {
        'method' => :get,
        'command' => "/vAppTemplate/vappTemplate-#{vAppId}"
      }

      response, headers = send_request(params)

      vapp_node = response.css('VAppTemplate').first
      if vapp_node
        name = vapp_node['name']
        status = convert_vapp_status(vapp_node['status'])
      end

      description = response.css("Description").first
      description = description.text unless description.nil?

      ip = response.css('IpAddress').first
      ip = ip.text unless ip.nil?

      vms = response.css('Children Vm')
      vms_hash = {}

      vms.each do |vm|
        vms_hash[vm['name']] = {
          :id => vm['href'].gsub(/.*\/vAppTemplate\/vm\-/, "")
        }
      end

      { :name => name, :description => description, :vms_hash => vms_hash }
    end
def get_vapp_template(vAppId)
      params = {
        'method' => :get,
        'command' => "/vAppTemplate/vappTemplate-#{vAppId}"
      }

      response, headers = send_request(params)

      vapp_node = response.css('VAppTemplate').first
      if vapp_node
        name = vapp_node['name']
        status = convert_vapp_status(vapp_node['status'])
      end

      description = response.css("Description").first
      description = description.text unless description.nil?

      ip = response.css('IpAddress').first
      ip = ip.text unless ip.nil?

      vms = response.css('Children Vm')
      vms_hash = {}

      vms.each do |vm|
        vms_hash[vm['name']] = {
          :id => vm['href'].gsub(/.*\/vAppTemplate\/vm\-/, "")
        }
      end

      { :name => name, :description => description, :vms_hash => vms_hash }
    end
Fetch details about a given vapp template:
 - name
 - description
 - Children VMs:
   -- ID