aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/shared_helpers.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-08-03 11:00:55 -0700
committerCarl Lerche <carllerche@mac.com>2010-08-03 11:00:55 -0700
commit251b9c78cdb1c1cd04de57965752373fd37856df (patch)
tree5349d728d22590f15475e1d049d0e20c8d9bd378 /lib/bundler/shared_helpers.rb
parent37ee7577583215b87e4cfa37ab7bd5a2b1d1722c (diff)
downloadbundler-251b9c78cdb1c1cd04de57965752373fd37856df.tar.gz
Use the Gemfile's name as a base for Gemfile.lock
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r--lib/bundler/shared_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 7bca421e..d71b1ccc 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -22,6 +22,10 @@ module Bundler
Pathname.new(gemfile)
end
+ def default_lockfile
+ Pathname.new("#{default_gemfile}.lock")
+ end
+
def in_bundle?
find_gemfile
end