Conary Commands via ruby

Posted by Michael Tue, 03 Oct 2006 14:33:16 GMT

I was just doing some repetitive commands in preparation for releasing the Ruby On Rails Appliance (yes, free as in beer) and had to do some repetitive commands. I started in shell and thought “this would be two lines in ruby”. Kicked off irb and:
['rubygems', 'rails', 'sqlite3-ruby', 'group-railsish'].each do |trove|
    system("cvc shadow imapenguinserver.rpath.org@iap:1 \
    #{trove}:source=imapenguinserver.rpath.org@rpl:devel")
    system("cvc co #{trove}=imapenguinserver.rpath.org@iap:1")
end

Ahh, ruby rulez:-)

Posted in , , ,  | no comments | no trackbacks

Comments

Trackbacks

Use the following link to trackback from your own site:
http://weblog.imapenguin.com/trackbacks?article_id=conary-commands-via-ruby&day=03&month=10&year=2006

Comments are disabled