Read my latest article: Announcing RailsDeveloper (posted Wed, 01 Sep 2010 17:01:00 GMT)

the bizarre love triangle of rbot, subversion, and drb

Posted by Robby Russell Thu, 15 Sep 2005 06:27:00 GMT

7 comments Latest by MAC Cosmetics Outlet Thu, 12 Aug 2010 09:26:04 GMT

In our pursuit to get stuff ready for the PDX.rb hackfest this weekend, Ben Bleything and I decided that it would be a cool idea to get rbot to monitor the groups subversion repositories.

We asked around a few IRC channels and people had different ways of handling this. The easy route looked to be to parse a RSS feed from Trac. (boring!)

So, in an effort to make it interesting and allow for a little creativity with rbot-and potentially open the doors to other ideas-we opted to build 2 pieces. One would be a post-commit script that would run after a svn commit and the other would be a new plugin in rbot, which started an instance of DRb.

The basic idea…

rbot starts drb on start

svn commit calls drb client, sends notifcation

Yes! I managed to sneak DRb somewhere else that it probably didn’t need to be. It was actually a good way to figure out how to properly tame the crazy lion that is DRb. It’s so sexy, but I am so afraid that it will scratch me if I get too close. It scratched a little tonight, but then the kind folks in #ruby-lang gave me a band-aid and I was on my way. Guess what? I tamed the lion!

The sad part is that I got the thing to properly work about 25 seconds after Ben logged off of IRC and here I am a few horus later amusing myself with test svn commits and telling the whole world. That’s right… he’s sleeping… and dreaming about how the lion is still out to attack him and you all know that the lion is nicely tucked away.

Thread.new { 
  # the lion is here 
}

We couldn’t have the lion holding the rbot in a headlock the whole time.

So, the lion is nice and it is our new friend. We now have instant notifications of when our repositories get commits in #pdx.rb.

Once we get it to format everything nice and pretty (color-wise), we’ll make it available for all of you rbot and subversion folks.

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    ed hardy clothing Fri, 26 Mar 2010 02:02:09 GMT
  2. Avatar
    adidas kicks Tue, 08 Jun 2010 02:54:17 GMT

    retre t

  3. Avatar
    mbt kaya dawn Tue, 08 Jun 2010 02:54:27 GMT

    try tr

  4. Avatar
    jordan VII Sat, 12 Jun 2010 07:22:21 GMT

    tr rt

  5. Avatar
    england 7 beckham white jersey Thu, 17 Jun 2010 07:34:34 GMT

    ty u

  6. Avatar
    mbt chapa shoe Thu, 17 Jun 2010 07:35:05 GMT

    ytuty

  7. Avatar
    MAC Cosmetics Outlet Thu, 12 Aug 2010 09:26:04 GMT

    We are a professional exporter and wholesaler of brand fashion products,Benefit Powder Pop 35 Benefit Powderazzi 36 Benefit Smokin Eyes 37 Benefit Speed Brow 39 Benefit The Gloss 40 ,All products have good quality,fast and safe delivery without shipping fee. Our primary goal is to meet our clients’ requirement and establish mutually pleasant business relationships with you.If you are interested, please do not hesitate to contact us.

Share your thoughts... (really...I want to hear them)

Comments