How can I restart a Ruby program?
<p>I'm running a ruby program for a personal project, and because it takes around 20 hours to finish the execution I want to "save the state" of the program every hour or so, in case there is power outage in my building.</p>

<p>I want to be able to restart the execution using the last "saved state" of the program. But I don't know if there is tool for doing that or if have to hard code the entire thing my self.</p>