skwpspace yan pritzker’s home on the web

skwpspace is Yan Pritzker's home on the web

Blog :: Photography :: About Me

hello, i'm yan

This blog is about startups, blogging, Ruby On Rails, virtualization and cloud computing, photography, customer service, marketing, ux and design, git, and lots more.

Get updates by email
Follow me on twitter

Top Posts

planypus

I'm the founder of Planypus, the place to share your plans!

cohesiveft

Accessible, manageable, virtualized application stacks ready to download or deploy to the cloud!

flickr

at the paradeat the parade@slava626@leorazellman and @smazo at bat17my poor ricohyou're wearing my sweaterthe graduatethe answer, my friend

Archives

Contact

Reach me at yan at pritzker.ws

Posted
11 September 2007 @ 7pm

Tagged
RubyOnRails, capistrano, deployment, rails, ruby

Clean svn tag support for Capistrano 2

If you find capistrano’s release directory naming conventions hard to use, a great alternative is to base releases on your svn tags. It turns out that implementing this in cap2 is quite simple. Unfortunately I can’t quite figure out how to turn this into a library so at this point it exists as a cut-n-paste release. Looking for a brave soul to spend a bit more time to turn this into perhaps a deployment recipe.

By reading capistrano source I was able to ferret out the places where I had to make minor adjustments, leading to an implementation in roughly 10 lines of code. All I really had to change was how capistrano sorts releases (using the modification date rather than the name of the directory), and how it determine which revision to write to the REVISION file (by making it grep for the proper field in the svn output). The release name itself and repository location was set using the standard capistrano variable based on the TAG passed in from command line.

The pastie is here capistrano 2 svn tag support.


1 Comment

Posted by
GSIY … Ruby-Rails Portal
14 September 2007 @ 11am


Leave a Comment

ruby tricks: simple caching of method results Opera 4 Mini on Helio Ocean with qwerty and landscape support