Capistrano 3.0 file transfers?

shaimo picture shaimo · Oct 20, 2013 · Viewed 7.6k times · Source

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?

Answer

Grant Birchmeier picture Grant Birchmeier · Nov 2, 2014

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.