Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put utility scripts in rails

I have some command-line ruby scripts for things like pre-processing text files before uploading them and scraping data.

These scripts don't rely on the rails environment, so I don't really want to make them rake tasks with the associated overhead.

Where should I put them in my folder layout? lib/utility/ or something?

like image 435
spike Avatar asked Mar 30 '12 20:03

spike


1 Answers

We put ours either into the top level of lib/ or we break them down further like lib/reports or lib/stats.

like image 119
Waynn Lue Avatar answered Nov 06 '22 15:11

Waynn Lue