From 8cb0b591547f26db8498c03c58de67abf23d8385 Mon Sep 17 00:00:00 2001 From: Andrii Kupchanko Date: Sat, 26 Oct 2013 17:02:27 +0300 Subject: [PATCH 1/2] Fix cleaning of old files via ftp --- lib/astrails/safe/ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/astrails/safe/ftp.rb b/lib/astrails/safe/ftp.rb index e34b80e..0d5519d 100644 --- a/lib/astrails/safe/ftp.rb +++ b/lib/astrails/safe/ftp.rb @@ -57,7 +57,7 @@ def cleanup sort cleanup_with_limit(files, keep) do |f| - file = File.join(path, f) + file = File.path(f) puts "removing ftp file #{host}:#{file}" if dry_run? || verbose? ftp.delete(file) unless dry_run? || local_only? end From ad55c5162c4a10e264f2a931db379a3f9d8c096f Mon Sep 17 00:00:00 2001 From: Andrii Kupchanko Date: Sat, 26 Oct 2013 17:17:17 +0300 Subject: [PATCH 2/2] Added ftp configuration example into readme --- README.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.markdown b/README.markdown index 26fad1c..6bfd048 100644 --- a/README.markdown +++ b/README.markdown @@ -160,6 +160,14 @@ The procedure to create and transfer the key is as follows: password "ssh password for sftp" end + ftp do + host "YOUR_REMOTE_HOSTNAME" + user "YOUR_REMOTE_USERNAME" + # port "NON STANDARD FTP PORT" + password "YOUR_REMOTE_PASSWORD" + path ":kind/:id" # this is the default + end + gpg do command "/usr/local/bin/gpg" options "--no-use-agent"