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
|
||||
class Connection
|
||||
def initialize(url, persistent=false, params={})
|
||||
end
|
||||
|
||||
def request(params, &block)
|
||||
path = File.expand_path(File.join(File.dirname(__FILE__),'..','..','data',params[:path].gsub(/^\//,'').gsub('/','_+_')))
|
||||
if File.exists?(path)
|
||||
body = File.read(path)
|
||||
else
|
||||
''
|
||||
module Vcloud
|
||||
class Compute < Fog::Service
|
||||
class Real
|
||||
def request(params, &block)
|
||||
path = File.expand_path(File.join(File.dirname(__FILE__),'..','..','data',params[:path].gsub(/^\//,'').gsub('/','_+_')))
|
||||
if File.exists?(path)
|
||||
body = File.read(path)
|
||||
else
|
||||
''
|
||||
end
|
||||
Excon::Response.new(
|
||||
:body => body,
|
||||
:status => 200,
|
||||
:header => '')
|
||||
end
|
||||
end
|
||||
Excon::Response.new(
|
||||
:body => body,
|
||||
:status => 200,
|
||||
:header => '')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue