- I need to create a daemon process that runs periodically in the background on a server and creates some export files from a database.
- I'd like to write it in Ruby and use ActiveRecord & ERB.
- Conveniently enough, I'm actually working on an RoR app that will be deployed on this server, against the same database, within a few months. So I might as well go ahead with a full RoR install on the server--no need to pick and choose gems.
- This daemon process I want to create now really is not connected to that app, and so should live entirely outside that app's directory structure.
I think it's that last point that I don't quite know what to do about. My standalone daemon would, I guess, require ActiveXXX and a model.rb file (or 2 or 3). Or perhaps no model file, just define the model classes inline. (This daemon could easily fit in a single source file; the model files will basically be empty.)