title: Ruby on Rails: Bundler & Capistrano: specify which groups (development, test) are to be excluded when deploying
body: <p>The Bundler documentation says, that in order to install all necessary bundles when deploying via Capistrano, one need only insert</p>
  
  <pre><code>require 'bundler/capistrano' # siehe http://gembundler.com/deploying.html
  </code></pre>
  
  <p>in his deploy.rb. Then, upon deployment, Capistrano calls</p>
  
  <pre><code>  * executing "bundle install --gemfile .../releases/20110403085518/Gemfile \
      --path .../shared/bundle --deployment --quiet --without development test"
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>However, we have a staging setup on our production server, isolated from the real live site, where we test a new app release with (cloned and firewalled) live production data. There, we need test and development gems to be installed.</p>
  
  <p>How do I specify the capistrano command line here? Are there parameters I can use, or do I need to set up my own capistrano task to overwrite Bundler's?</p>
  
  <p>Thank you!</p>