diff options
Diffstat (limited to 'lib/bundler/environment.rb')
-rw-r--r-- | lib/bundler/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/environment.rb b/lib/bundler/environment.rb index 4a6243139e..72ed082f32 100644 --- a/lib/bundler/environment.rb +++ b/lib/bundler/environment.rb @@ -29,6 +29,9 @@ module Bundler end def lock + env_file = root.join('.bundle/environment.rb') + env_file.rmtree if env_file.exist? + File.open(root.join('Gemfile.lock'), 'w') do |f| f.puts @definition.to_lock end |