ruby syntax fix

switching do/end to {}
it worked in irb on OSX but not in this script on CF/Linux