C
Carlos Fernandez
<newbie>
An internal application, the "manager", will periodically locate a
series of ruby files in a directory structure. The application will
execute each ruby file using backticks (e.g. `ruby myfile.rb`). This
means that a single execution of the manager may end up spinning a
number of separate ruby processes. Although there are clear issues with
this, it is working well enough.
Now we need to include some core class extensions in each ruby process
this application spins up. The files that the manager will run do not
know about the extensions.
I have tried variations of the following interpreter options will no
success (probably user error):
-rlibrary require the library, before executing your script
-Idirectory specify $LOAD_PATH directory (may be used more than
once)
How, can I force each ruby process to "require" these class extensions?
thanks in advance.
Carlos
An internal application, the "manager", will periodically locate a
series of ruby files in a directory structure. The application will
execute each ruby file using backticks (e.g. `ruby myfile.rb`). This
means that a single execution of the manager may end up spinning a
number of separate ruby processes. Although there are clear issues with
this, it is working well enough.
Now we need to include some core class extensions in each ruby process
this application spins up. The files that the manager will run do not
know about the extensions.
I have tried variations of the following interpreter options will no
success (probably user error):
-rlibrary require the library, before executing your script
-Idirectory specify $LOAD_PATH directory (may be used more than
once)
How, can I force each ruby process to "require" these class extensions?
thanks in advance.
Carlos