summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index aec23525ed..0fde5776e9 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -227,12 +227,12 @@ module Bundler
private
def locked?
- File.exist?("#{Bundler.root}/Gemfile.lock") || File.exist?("#{Bundler.root}/.bundle/environment.rb")
+ File.exist?("#{Bundler.root}/Gemfile.lock") || File.exist?("#{Bundler.app_config_path}/environment.rb")
end
def remove_lockfiles
FileUtils.rm_f "#{Bundler.root}/Gemfile.lock"
- FileUtils.rm_f "#{Bundler.root}/.bundle/environment.rb"
+ FileUtils.rm_f "#{Bundler.app_config_path}/environment.rb"
end
def locate_gem(name)