# File lib/deltacloud/drivers/opennebula/occi_client.rb, line 70 def post_vms(xmlfile) xml=File.read(xmlfile) url = URI.parse(@endpoint+"/compute") req = Net::HTTP::Post.new(url.path) req.body=xml req.basic_auth @occiauth[0], @occiauth[1] res = CloudClient::http_start(url) do |http| http.request(req) end if CloudClient::is_error?(res) return res else return res.body end end