module EnvironmentHelpers
Public Instance Methods
default_env(hash = {})
click to toggle source
# File lib/potassium/helpers/environment-helpers.rb, line 13 def default_env(hash = {}) hash.each do |key, value| set_env(key, value) end end
get_env(key)
click to toggle source
# File lib/potassium/helpers/environment-helpers.rb, line 8 def get_env(key) ensure_variable(:default_env, {}) get(:default_env)[key] end
set_env(key, value)
click to toggle source
# File lib/potassium/helpers/environment-helpers.rb, line 2 def set_env(key, value) ensure_variable(:default_env, {}) get(:default_env)[key] = value ENV[key] = value end