Updating running ruby scripts

Hi,
I’ve got a few small ruby scripts that run every 15 minutes or so from
cron that do processing from a database. I was wondering if it is
dangerous to update these programs (basically an svn update) while they
are running. They don’t read any files while they are running, just
work off a db. I guess this isnt a Ruby question per say, but basically
my question is, is the entire ruby script loaded into memory when it
launches? So any change to the rb file itself wouldn’t affect the
program until it was launched again?

Thanks,
Ray

Raymond O’Connor wrote:

work off a db. I guess this isnt a Ruby question per say, but basically
my question is, is the entire ruby script loaded into memory when it
launches?

AFAIK, the entire Ruby file is parsed into an AST before any of it is
evaluated. However, if your script is split up into multiple files, I
imagine there could be a .001% race condition where Ruby loads an
impartially-updated code base.

(Note: The preceding email was written by a team of intoxicated monkeys,
and may not be in any way true.)