Method: OpenNebula::VirtualMachine#user_template_xml

Defined in:
lib/opennebula/virtual_machine.rb

#user_template_xmlString

Returns the <USER_TEMPLATE> element in XML form

Returns:

  • (String)

    The USER_TEMPLATE



323
324
325
326
327
328
329
# File 'lib/opennebula/virtual_machine.rb', line 323

def user_template_xml
    if NOKOGIRI
        @xml.xpath('USER_TEMPLATE').to_s
    else
        @xml.elements['USER_TEMPLATE'].to_s
    end
end