Method: Beaker::LocalConnection#with_env
- Defined in:
- lib/beaker/local_connection.rb
#with_env(env) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/beaker/local_connection.rb', line 29 def with_env(env) backup = ENV.to_hash ENV.replace(env) yield ensure ENV.replace(backup) end |