Its all about Ruby On Rails
Capistrano: uploading / downloading directory to / from remote server via SCP or sftp
Hey I found two interesting functions while going through capistrano’s files. There are two functions named “upload” and “download”, which can be used to download and upload directories from / to remote server using scp.
Examples:
upload(“LOCAL_DIR_PATH”, “REMOTE_PATH”, :via=> :scp, :recursive => true)
download(“REMOTE_PATH”, “LOCAL_DIR_PATH”, :via=> :scp, :recursive => true)
You can also use :sftp.
Unfortunately it is not much documented
.
| Print article | This entry was posted by Akhil Bansal on October 25, 2008 at 2:08 pm, and is filed under ROR, Rails, Rubyonrails, SCP, capistrano, ruby, sftp, transfer. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
Seems a secure way to sending configuration files like database.yml