refatorando rake tasks