Skip to content

Commit

Permalink
Made fireplace-beta way simpler for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mario committed Dec 23, 2008
1 parent a6abf62 commit 535e11d
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions fireplace-beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,11 @@ echo 'provided server deployment scripts.'

echo 'This is beta!!'

do_work ()
{
cd $1-stack
./build-$1-stack $2 $3
}

user input ()
{
PS3="Your choice: "

select stackname in "ramaze" "gitosis" "trac" "grails" "mysql" "postgresql" "lamp" "subversion" "quit"
do
[ $stackname = "quit" ] && exit 0

done
}

if [ $# -ne 1 -a $# -ne 3 ]; then
user_input
else
do_work $1 $2 $3
fi
[ "$stackname" = "quit" ] && exit 0
cd $stackname-stack
./build-$stackname-stack $2 $3
done

0 comments on commit 535e11d

Please sign in to comment.