Bundle install without test or development
You can install gems with bundler from your Gemfile and skip a certain environment with
1 2 3 |
bundle install --without test |
To skip multiple environments do
1 2 3 |
bundle install --without test --without development |
This of course assumes you have a a gemfile something like:
1 2 3 4 5 6 7 8 9 10 11 |
group :development, :test do gem 'ruby-debug' end group :test do gem "rspec", ">= 2.0.0.beta.19" end |
Also, Michael points out that you can skip the slow “Fetching source index for http://rubygems.org/” by using “—no-update-sources”
Have a nice day.
September 21, 2010
