document.write('<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>')





document.write('<div id=\"gist-69745\" class=\"gist\">\n  \n  \n    \n            \n\n      <div class=\"gist-file\">\n        <div class=\"gist-data gist-syntax\">\n          \n          \n          \n            <div class=\"gist-highlight\"><pre><div class=\"line\" id=\"LC1\"><span class=\"no\">God<\/span><span class=\"o\">.<\/span><span class=\"n\">watch<\/span> <span class=\"k\">do<\/span> <span class=\"o\">|<\/span><span class=\"n\">w<\/span><span class=\"o\">|<\/span><\/div><div class=\"line\" id=\"LC2\">&nbsp;&nbsp;<span class=\"c1\"># ...<\/span><\/div><div class=\"line\" id=\"LC3\">&nbsp;<\/div><div class=\"line\" id=\"LC4\">&nbsp;&nbsp;<span class=\"c1\"># Setting ENV variables for your script.<\/span><\/div><div class=\"line\" id=\"LC5\">&nbsp;&nbsp;<span class=\"n\">w<\/span><span class=\"o\">.<\/span><span class=\"n\">env<\/span> <span class=\"o\">=<\/span> <span class=\"p\">{<\/span> <span class=\"s2\">&quot;WORKER_ID&quot;<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"s2\">&quot;12&quot;<\/span> <span class=\"p\">}<\/span><\/div><div class=\"line\" id=\"LC6\">&nbsp;<\/div><div class=\"line\" id=\"LC7\">&nbsp;&nbsp;<span class=\"c1\"># Allow STDOUT and capture it to a log file.<\/span><\/div><div class=\"line\" id=\"LC8\">&nbsp;&nbsp;<span class=\"n\">w<\/span><span class=\"o\">.<\/span><span class=\"n\">log<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">&quot;path/to/stdout/log/file.log&quot;<\/span><\/div><div class=\"line\" id=\"LC9\">&nbsp;<\/div><div class=\"line\" id=\"LC10\">&nbsp;&nbsp;<span class=\"c1\"># ...<\/span><\/div><div class=\"line\" id=\"LC11\"><span class=\"k\">end<\/span><\/div><\/pre><\/div>\n          \n        <\/div>\n\n        <div class=\"gist-meta\">\n          <a href=\"http://gist.github.com/raw/69745/85b758b58eeddedc17e58e0cd2deda4c746aad69/gistfile1.rb\" style=\"float:right;\">view raw<\/a>\n          <a href=\"http://gist.github.com/69745#file_gistfile1.rb\" style=\"float:right;margin-right:10px;color:#666\">gistfile1.rb<\/a>\n          <a href=\"http://gist.github.com/69745\">This Gist<\/a> brought to you by <a href=\"http://github.com\">GitHub<\/a>.\n        <\/div>\n      <\/div>\n    \n  \n<\/div>\n')
