Method: Bundler::Settings#initialize
- Defined in:
- lib/bundler/settings.rb
#initialize(root = nil) ⇒ Settings
Returns a new instance of Settings.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/bundler/settings.rb', line 104 def initialize(root = nil) @root = root @local_config = load_config(local_config_file) @local_root = root || Pathname.new(".bundle"). @env_config = ENV.to_h @env_config.select! {|key, _value| key.start_with?("BUNDLE_") } @env_config.delete("BUNDLE_") @global_config = load_config(global_config_file) @temporary = {} @key_cache = {} end |