The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Post deployment log to Basecamp

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Patrick Lenz

Posts: 168
Nickname: scoop
Registered: Apr, 2005

Patrick Lenz is the lead developer at freshmeat.net and a contributor to the typo weblog engine
Post deployment log to Basecamp Posted: Apr 5, 2008 9:40 AM
Reply to this message Reply

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.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Patrick Lenz
Latest Posts From poocs.net

Advertisement

I guess many of you have been reading the recent Signal vs. Noise blog post titled Using Basecamp to automatically keep track of product releases. I found it rather inspiring so I started to work on something similar for my own projects.

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

It automatically hooks itself into your deployment process after deploy:symlink has run. Here’s a direct link to the GitHub repository.

If you don’t have git, you can download a tarball from GitHub, but read the caveat in the next section.

Configuration

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.

basecamp_notify

Questions?

Email me at patrick@limited-overload.de if you have questions. Hope it’s useful for some of you.

Read: Post deployment log to Basecamp

Topic: Rails is Moving to Git: Helpful Git Links For New Git Users Previous Topic   Next Topic Topic: Haskell is Slick

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use