summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.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/cli.rb
parent37ee7577583215b87e4cfa37ab7bd5a2b1d1722c (diff)
downloadbundler-251b9c78cdb1c1cd04de57965752373fd37856df.tar.gz
Use the Gemfile's name as a base for Gemfile.lock
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 8112437260..f094986f68 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -141,7 +141,7 @@ module Bundler
if opts[:production]
Bundler.production = true
- unless Bundler.root.join("Gemfile.lock").exist?
+ unless Bundler.default_lockfile.exist?
raise ProductionError, "The --production flag requires a Gemfile.lock. Please\n" \
"make sure you have checked your Gemfile.lock into version\n" \
"control before deploying."
@@ -153,7 +153,7 @@ module Bundler
end
# Can't use Bundler.settings for this because settings needs gemfile.dirname
- ENV['BUNDLE_GEMFILE'] = opts[:gemfile] if opts[:gemfile]
+ ENV['BUNDLE_GEMFILE'] = File.expand_path(opts[:gemfile]) if opts[:gemfile]
Bundler.settings[:path] = nil if options[:system]
Bundler.settings[:path] = "vendor/bundle" if options[:production]
Bundler.settings[:path] = path if path