1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vcloud|compute] properly namespace vcloud test to prevent breaking others

closes #638
This commit is contained in:
geemus 2011-12-04 13:42:19 -06:00
parent 33366c61e5
commit 473513e68a

View file

@ -1,19 +1,20 @@
module Fog module Fog
class Connection module Vcloud
def initialize(url, persistent=false, params={}) class Compute < Fog::Service
end class Real
def request(params, &block)
def request(params, &block) path = File.expand_path(File.join(File.dirname(__FILE__),'..','..','data',params[:path].gsub(/^\//,'').gsub('/','_+_')))
path = File.expand_path(File.join(File.dirname(__FILE__),'..','..','data',params[:path].gsub(/^\//,'').gsub('/','_+_'))) if File.exists?(path)
if File.exists?(path) body = File.read(path)
body = File.read(path) else
else ''
'' end
Excon::Response.new(
:body => body,
:status => 200,
:header => '')
end
end end
Excon::Response.new(
:body => body,
:status => 200,
:header => '')
end end
end end
end end