Ruby makes me smile

Posted by Michael Fri, 06 Jul 2007 11:21:25 GMT

It’s not often that computer work makes me smile. I needed to download 6 files today. This is what made me smile:

[1,2,3,4,5,6].each do |number|
    system("wget http://mirror.stanford.edu/yum/\
        pub/centos/5.0/isos/i386/\
        CentOS-5.0-i386-bin-#{number}of6.iso")
end

Ahh. Ruby, where the simple things are simple.

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=ruby-makes-me-smile&day=06&month=07&year=2007

Comments are disabled