Automating file uploads with SSH and Ruby

Are you fairly new to Ruby programming? Do you want to learn more about how Ruby can be used as the “glue” to script various libraries into harmonious cooperation? Look no further…

InfoQ recently published an article I wrote last year about how to automate file uploads to a web server with Ruby’s Net::SSH and Net::SFTP libraries. It’s a fairly lengthy tutorial with plenty of code samples.

Looking back, the script I created could pretty easily be reproduced in Capistrano today. But isn’t it sometimes more fun (not to mention educational) to write something from scratch? I sure think so.