Versions:
- Ruby 1.8.7
- Capistrano v2.5.5
- Rake / Rails / etc
Platform:
- CentOS/Red Hat
I'm trying to write a task (to be called from a Perl script) that will work
on any Linux host in my environment. However, since there is only one host
that can SSH to every other host (it
I'd drop Capistrano and use SSHKit, the underlying driver in Capistrano v3
(your example is v2) - see
https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#upload-a-file-from-disk
and
https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#using-with-rake
Combine those two to recreate