converting block style in a couple rake tasks