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:-)
