Seems like Capistrano used to have an extensive file transfer package.
However, it seems to be gone in version 3.0 after the rewrite. Any idea if there is some alternative way to still transfer files to/from servers?
Seems like Capistrano used to have an extensive file transfer package.
However, it seems to be gone in version 3.0 after the rewrite. Any idea if there is some alternative way to still transfer files to/from servers?
To download:
desc "download foobar.txt into local_dir/"
task :foobar do
download! "some_remote_path/foobar.txt", "local_dir/"
end
I know this works as of Cap 3.2.1, as I'm using it right now.
I asked about this on IRC and found that there is still an upload function:
on hosts do |host|
upload! '/config/database.yml', '/opt/my_project/shared/database.yml'
end
https://github.com/leehambley/sshkit/blob/master/EXAMPLES.md However I have yet to find a way to download files from the server without using rsync or scp
You could use rsync
run_locally do
execute"rsync -ah --progress source destination"
end