Using Capistrano as a stand-alone SSH client

If you do a lot of SSH work in your Ruby code, you know there are many
options available to you:

You can do Net::SSH or run the ssh client as a separate process. Here is
an example of using Capistrano to do the same. It can have some
advantages like allowing ssh gateways all of which are available to you
if you use Net::SSH but using Capistrano just makes it easier.

Here is a simple example:

Khash Sajadi

Khash is the founder and CEO of Cloud 66, a full stack container management as a service. Follow him on @khash

London, UK and San Francisco, US
Subscribe and get updates

Have feedback? Please get in touch @cloud66 on Twitter.

Everything you need to build, manage and maintain containers in production on your own servers and any cloud

Try Cloud 66 — 14 Days Free Trial, No credit card required