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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -