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:
<code>
cd test/releases/20120327132342 && bundle install --gemfile test/releases/20120327132342/Gemfile --path test/shared/bundle --deployment --quiet --without development test
</code>
Here the Gemfile could not be found, because we are looking in the wrong path

with the patch it looks like this and works:
<code>
cd test/releases/20120327132342 && bundle install --gemfile Gemfile --path test/shared/bundle --deployment --quiet --without development test
</code>