Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Created January 23, 2009 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trptcolin/51087 to your computer and use it in GitHub Desktop.
Save trptcolin/51087 to your computer and use it in GitHub Desktop.
#!/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