 <p>According to <a href="http://ruby.about.com/od/rubyfeatures/a/envvar.htm">http://ruby.about.com/od/rubyfeatures/a/envvar.htm</a>, you can just write:</p> <pre><code>ENV['SOME_VAR'] = 'some_value' </code></pre>