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" 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