carlhuda/bundler — pull request #1799 by gerwinbrunner (2012-03-27 13:35:02+00:00)
Title: The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying.

The original command that is created seemed to have a path issue. I made a fix for it.

The command looked like this:

cd test/releases/20120327132342 && bundle install --gemfile test/releases/20120327132342/Gemfile --path test/shared/bundle --deployment --quiet --without development test

Here the Gemfile could not be found, because we are looking in the wrong path

with the patch it looks like this and works:

cd test/releases/20120327132342 && bundle install --gemfile Gemfile --path test/shared/bundle --deployment --quiet --without development test