fog--fog/tests/vcloud/models/compute/conn_helper.rb

21 lines
501 B
Ruby

module Fog
module Vcloud
if false
class Fog::Connection
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
end
end
end