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:
parent
cc669ef68d
commit
5c20973b3a
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue