Upload recipe using Net::SCP
Sharing a simple ruby recipe to automate uploads of static website, if rsync is giving you problems(like with my school web server). This script uses Net::SCP.
Net::SCP is a pure-Ruby implementation of the SCP protocol. This operates over SSH (and requires the Net::SSH library), and allows files and directory trees to copied to and from a remote server.
This solution lies somewhere between manually uploading and fully automation using Capistrano or Vlad.




1 comment
Yes, rsync is giving me problems on my laptop. I will have to try this.
Leave a Comment