On Apr 6, 2010, at 9:00 PM, thunk wrote:
> On a single user system we are using the following code to load
> textfiles into the program as executable classes.
> 
> http://gist.github.com/358497
> 
> I remain unclear if this can be done on Heroku, and how.
> 
> Can the newly created text file be saved to Amazon?
> 
> If so, how is this done?  (Normal File IO? somehow?)
> 
> If we stored the text files into a RDMS, can you think of a way to
> become classes in the running program?

If you really want to do this (and you'll probably regret it later, honestly), you can store the scripts in a text column in a DB table and have them "become classes" using Kernel#eval.


~ j.