Project

elsewhere

0.0
No commit activity in last 3 years
No release in over 3 years
Yet another way to run stuff remotely
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

#Elsewhere

###Simple wrapper for Ruby Net::SSH for running commands remotely

#Why? This was abstracted from a larger project. There are many solutions out there that already do or require this paradigm like Capistrano or RemoteRun for Rake. But this code exists and Is used in several active projects so I thought it might be useful to others.

#Usage:

r = Elsewhere::RemoteRun.new("www.example.com","app_user")
r.commands << "source /etc/profile"
r.commands << "cd ~/current"
r.commands << "rake do:something:useful"

#fails silently
r.execute

#raises exception on nonzero status codes
r.execute!

=> { "www.example.com" => "results from data stream"}

#Notes: I'm still in the process of adding some tests and porting this over to a gem but the core library is used in a working project