Expose Rails App Environment to Ruby Script -
out of pure curiosity, wondering if it's possible (no doubt is) 'hook into' rails application's environment. example, want create cron script (i don't) operates sort of maintenance on rails app, , want write in ruby , using of nice code have, example, user.find
etc.
is possible, , if so, how?
i'm curious, feel want reason or other.
i'm on rails 3 ruby 1.9.1, in case matters.
this possible. here writeup on how that: how run rake task cron
Comments
Post a Comment