post

Capistrano 2.almost

On Wednesday Jamis Buck released a preview of the upcoming Capistrano 2.0. For those not familiar with Capistrano yet, it is a framework for automating tasks via SSH on remote servers. Use it for everything from software installation and application deployment to configuration management and ad hoc server monitoring. It is a fantastic piece Ruby workmanship and the single most useful Ruby utility in my toolbox.

There are a few gotchas if you’re upgrading from 1.x which Jamis outlines at the new home of Capistrano, capify.org. Nothing in the list is a deal breaker. After reading through the new feature set it’s clear that Jamis has been working hard to make Capistrano operate with fewer assumptions about what you’re trying to do with it.

Capistrano (born Switchtower) was created with the specific intention of relieving the pain 37signals felt when deploying their Rails based products. Thus it made several assumptions that, by default, anticipated a Rails setup. No longer. Instead of looking for a deployment recipe (config/deploy.rb),

“Capistrano 2.0 will now look for the capfile first in the current working directory, and if it does not locate it there, it will continue to search up the directory tree until it either reaches the root directory, or finds a Capfile. This means you can now invoke cap from anywhere within your project tree, and have it find your project Capfile.”

I still sit there staring at the terminal with a huge grin on my face each time I run ‘cap deploy’. Take it to the next level and get Capistrano 2.0 Preview 1 with:

gem install -s http://gems.rubyonrails.com capistrano

Jamis is soliciting feedback on Capistrano 2.0 in the Capistrano mailing list.

post

Opening Finder Folder in iTerm

Recently I have looked, albeit not very hard, for a solution to an itch I’ve had for a while. Like so many other Mac converts, I came from the the world of Windows and during this previous existence I relied heavily on the Open Command Window Here PowerToy from Microsoft. This handy little shell extension adds a option to the right-click menu of Windows Explorer which, you guessed it, open a command window in the specified directory. As the proud user of a Powerbook (and the excellent iTerm) I have missed the simple functionality of this utility… until tonight!

Phil Windley has posted a simple Automator/AppleScript solution that is functional, if a little slow upon execution. I’m generally a patient guy so it doesn’t bother me too much to wait a few seconds for the AppleScript to run. What really matters is that I can now command-click while in a Finder folder and have the option to open iTerm and change to the current directory.

The one caveat I found is that you must already be in the folder to open it in iTerm. You cannot command-click on a folder below the current folder and have iTerm open to that folder. The current folder will be the target instead.

If you use iTerm and want/need a simple “Open in iTerm” function in the Finder context menu, give Phil’s tip a try… you’ll like it!

post

Ruby on Rails 1.0 is out!

Haven’t you heard? Rails 1.0 is out.