Ruby-Tricks

How to Transfer Files using SSH and Ruby

Matthew Bass has written a tutorial, published by InfoQ, called "Automating File Uploads with SSH and Ruby." It provides an in-depth look into building a small Ruby script that can backup files to a remote machine over SSH using the Net-SSH and Net-SFTP libraries. It goes into quite some depth, and provides source code for a recursive backup script. If you haven't had a dig into the Net-SSH and Net-SFTP libraries yet, it's worth a look to see how the basics work.

Read more →

Erlang / Ruby Bridge: It’s Erlectricity

Erlectricity is a very early stage library in a "pre-release" stage that acts as an interoperability bridge between Ruby and Erlang processes. Scott Fleckenstein is the developer, and he is going to continue blogging about Erlectricity's development, and Ruby / Erlang interoperability on his blog. While this topic isn't quite mainstream yet, many Ruby developers have become interested in Erlang lately and Ruby / Erlang interoperability and co-operation is likely to become a big topic in the Ruby community towards the end of the year.

Read more →

7 Cool New Ruby Snippets

I've stumbled across several great snippets of Ruby code on the Web in the past few weeks, and rather than bore you with a post on each one, here's a whole collection at once:

Read more →