Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cleaning of old files via ftp #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.markdown
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
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