mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
![Peter Meier](/assets/img/avatar_default.png)
Improve the models to work with the current api version. add tests that use fake-data, that was captured from a real vCloud. Also removed a couple of dead code. Tests have been added for everything that changed or have been added. All the existing but untouched parts have not been tested.
13 lines
359 B
Ruby
13 lines
359 B
Ruby
module Fog
|
|
class Connection
|
|
def initialize(url, persistent=false, params={})
|
|
end
|
|
|
|
def request(params, &block)
|
|
Excon::Response.new(
|
|
:body => File.read(File.expand_path(File.join(File.dirname(__FILE__),'..','..','data',params[:path].gsub(/^\//,'').gsub('/','_+_')))),
|
|
:status => 200,
|
|
:header => '')
|
|
end
|
|
end
|
|
end
|