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:
parent
33366c61e5
commit
473513e68a
1 changed files with 15 additions and 14 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue