Created
January 23, 2009 17:11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z $1 ]]; then | |
echo "Usage: $0 takes one argument, the project name." | |
exit 0 | |
else | |
project=`basename $1` | |
fi | |
action="sudo mongrel_rails cluster::restart -C /etc/mongrel_cluster/$project.yml" | |
echo $action | |
eval "stty -echo" | |
eval "ssh svn $action" | |
eval "stty echo" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment