diff options
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 4a5d82c3f9..7bd421e1e1 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -1,7 +1,7 @@ module Bundler class Settings - def initialize(root) - @root = root + def initialize(app_config_path) + @dir = app_config_path.to_s @config = File.exist?(config_file) ? YAML.load_file(config_file) : {} end @@ -31,7 +31,7 @@ module Bundler private def config_file - Pathname.new("#{@root}/.bundle/config") + Pathname.new("#{@dir}/config") end end end
\ No newline at end of file |