Class: HttpVmCollection

Inherits:
VmCollection show all
Defined in:
lib/ovfparse/vmcollection.rb

Instance Attribute Summary

Attributes inherited from VmCollection

#base_path, #diskSection, #name, #networkSection, #package_details, #protocol, #references, #size, #state, #url, #version, #virtualSystemCollection, #xml

Instance Method Summary collapse

Methods inherited from VmCollection

#addDisk, #addFileReference, #addNetwork, #addVirtualSystem, #addVmPackage, #checkschema, #compareDisks, #compareFileReferences, #compareNetworks, constructFromVmPackages, constructSkeleton, create, #findReplace, #getChildByName, #getChildrenByName, #getCollectionDescription, #getCollectionName, #initialize, #loadElementRefs, #parseXML, #search, #setCollectionDescription, #setCollectionName, #splitIntoPackages, #to_s, #uri, #writeXML

Constructor Details

This class inherits a constructor from VmCollection

Instance Method Details

#fetchObject



397
398
399
400
401
402
403
404
405
# File 'lib/ovfparse/vmcollection.rb', line 397

def fetch 
   url = URI.parse(URI.escape(self.uri))
   @xml = Nokogiri::XML(open(url)) do |config|
      config.noblanks.strict.noent
   end

   loadElementRefs
   parseXML
end