I have a controller action that generates a number of excel reports, this takes about 10 minutes to do. Sometimes I call it from my webapp, which is why it is an action.
But I also want to create a rake task to run this, so I can schedule it to automatically run once a night.
Any way to do this?