Module: Unbundle
- Defined in:
- lib/coruro/unbundle.rb
Class Method Summary collapse
Class Method Details
.all(env) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/coruro/unbundle.rb', line 2 def self.all(env) env.keys.grep(/BUNDLER_ORIG/).reduce({}) do |new_env, env_var| orig_val = ENV[env_var] val = orig_val == "BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL" ? nil : orig_val new_env[env_var.gsub("BUNDLER_ORIG_", "")] = val new_env end end |