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

Mock implementations for SCP upload and download

This commit is contained in:
Tom Mornini 2012-05-30 22:38:39 -07:00
parent cc669ef68d
commit 5c20973b3a

View file

@ -13,7 +13,7 @@ module Fog
def self.data
@data ||= Hash.new do |hash, key|
hash[key] = {}
hash[key] = []
end
end
@ -24,11 +24,19 @@ module Fog
end
def upload(local_path, remote_path, upload_options = {})
Fog::Mock.not_implemented
self.class.data[@address] << { :username => @username,
:options => @options,
:local_path => local_path,
:remote_path => remote_path,
:upload_options => upload_options }
end
def download(remote_path, local_path, download_options = {})
Fog::Mock.not_implemented
self.class.data[@address] << { :username => @username,
:options => @options,
:remote_path => remote_path,
:local_path => local_path,
:download_options => download_options }
end
end