summaryrefslogtreecommitdiff
path: root/test/cgi/update_env.rb
blob: cbc8dc13c6ee2dc0c839b9adb27622a349441174 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: false
module UpdateEnv
  def update_env(environ)
    environ.each do |key, val|
      @environ[key] = ENV[key] unless @environ.key?(key)
      ENV[key] = val
    end
  end
end