BashfulRuby lets you create bash scripts using Ruby. You get the benefits of Ruby's language features without sacrificing bash's ubiquity.