From 5c20973b3a3b0c20e36fa053070913cdd20450f1 Mon Sep 17 00:00:00 2001 From: Tom Mornini Date: Wed, 30 May 2012 22:38:39 -0700 Subject: [PATCH] Mock implementations for SCP upload and download --- lib/fog/core/scp.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/fog/core/scp.rb b/lib/fog/core/scp.rb index 600ec90a7..80a8deebc 100644 --- a/lib/fog/core/scp.rb +++ b/lib/fog/core/scp.rb @@ -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