Capistrano 2.1
October 16, 2007 · by Kevin Runde
So this weekend I started a new sample application for Rails. I decided I was going to use the most recent version of all the tools, such as Rails 1.2.5 and Capistrano 2.1. I how they upgraded Capistrano. First all of my 1.x tasks still worked, even with out going through the upgrade process.
Then there is a great upgrade guide on the Capistrano Website. It is very short because upgrading is very straight forward.
BUT
I was getting warning from the mongrel_cluster tasks. So I decided to dive into Capistrano Task definitions. I was surprised by how easy they are to understand. I was expecting something like Ant or worse Maven, but the DSL created for Capistrano is so easy to work with I was able to do learn it and convert all of the mongrel_cluster tasks to Capistrano 2 in just a few hours. There was one very confusing and tricky part. When you have a task in one name space calling a task in a different name space you do it by using dot instead of colon. Thats right if you wanted to call mongrel_cluster:start from your deploy:start task you would add a line that says mongrel_cluster.start. I just don’t like that syntax. Every where else you use the colon.
Filed in: Team Member Blog Comments (0)

Comments
There are no comments for this entry.
Commenting is not available in this section entry.