diff options
author | Carl Lerche <carllerche@mac.com> | 2010-08-03 11:00:55 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-08-03 11:00:55 -0700 |
commit | 251b9c78cdb1c1cd04de57965752373fd37856df (patch) | |
tree | 5349d728d22590f15475e1d049d0e20c8d9bd378 /lib/bundler/cli.rb | |
parent | 37ee7577583215b87e4cfa37ab7bd5a2b1d1722c (diff) | |
download | bundler-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.rb | 4 |
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 |