This post originated from an RSS feed registered with Ruby Buzz
by Patrick Lenz.
Original Post: Post deployment log to Basecamp
Feed Title: poocs.net
Feed URL: http://feeds.feedburner.com/poocsnet
Feed Description: Personal weblog about free and open source software, personal development projects and random geek buzz.
Out of that effort comes a super simple Capistrano plugin that grabs the first line from each commit (the subject in Git lingo) that happened between the last deploy and the current one and posts it as a new message to a pre-defined project (and category) on your Basecamp account using the Basecamp API.
Installation
$ cd <yourapp>/vendor/plugins
$ git clone git@github.com:scoop/basecamp_notify.git
The download ships with an example YAML configuration that needs to go into <yourapp>/config/basecamp.yml. It takes your Basecamp URL, username, and password as well as the numeric IDs for the project and category to post to, respectively.
Caveat: Since I wanted a fairly concise output in my posted messages (resembling what 37signals has in their example), I used a special command-line argument formatting thingamagick that only Git understands, so the plugin could be considered Git-only for now. Feel free to send in a patch that does the same for subversion.