I try to write a little ruby script, which shall load a ruby application with the command load. That works fine.
But I want to use the loaded environment to run commands, but I don’t know how to get it working.
It looks like:
load('script/console')
LoadedClass.find(1)
Is it possible?
You could write your script and then use the rails runner to run it.