Project

tell

0.0
No commit activity in last 3 years
No release in over 3 years
(T)hin Ruby Secure Sh(ell).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Tell

Dead simple SSH access using what's already available.

First...

Did you know you can do this?

$ ssh server1 -- git pull

The command above will connect to server1 (assuming you have something like that in your SSH config (~/.ssh/config) and execute git pull upon connecting.

What this does?

It wraps that command and makes it convenient to execute mutiple commands at once.

Example:

$ tell server1 -c "git pull" -c "rake cdn:update" -c "thin restart"

You can also execute commands against multiple servers.

$ tell server1 server2 -c "ls"

Within Ruby?

require "tell"

tell = Tell.new(["server1"]) do
  execute "git pull"
  execute "rake cdn:update"
  execute "thin restart"
end

tell.run