Creating edge apps

Published December 13, 2007

I’m living on trunk/edge, and I use this shellscript to create new rails apps.

I have a Rails trunk checked out and ready. This is what the shellscript does:

#!/usr/bin/env bash
EDGE_IS_AT="/path/to/your_own/rails_trunk" 
svn up $EDGE_IS_AT
ruby "$EDGE_IS_AT/railties/bin/rails" $@

I stored that in a file called ‘edgerails’, added it to a bin directory, and hey ho!

edgerails new_app_name

It ups the trunk to the very latest version, and creates the rails app with the rails command of the edge rails. Yep!