toi
is a command line utility and tcl DSL that helps you write scripts to
interact with remote servers via SSH.
Put this into your toi.tcl
file:
set host "user@myserverhost.com"
proc deploy {} {
ssh "git pull origin master"
}
(Note: toi.tcl must be executable)
And on in the command line:
toi deploy
cd ~/bin
(or somewhere else)git clone git://github.com/juliend2/toi.git
- now add this line to your
.bashrc
file:export PATH=$PATH:~/bin/toi/bin
source ~/.bashrc
ssh
: execute the specified$command
remotely, on the$host
specified in thetoi.tcl
file.in
: changes the current$directory
on the remote host, for the commands executed in the$body
block.local
: execute a$command
locally.rsync
: use rsync to synchronize the$src
directory with the$target
directory. Optionally accepts rsync-compatible$options
.scp
: use scp to synchronize the$src
directory with the$target
directory. Optionally accepts scp-compatible$options
.
0.5.2
- catch standard errors in
ssh
command
0.5.1
- add some example 'toi' files
- modified the directory structure to add bin/ and lib/
0.5
- initial (working) version.
- write some tests
- write more comments