Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/astrails/safe/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down