capistrano / bundler

Bundler support for Capistrano 3.x
MIT License
219 stars 83 forks source link

added support for optional gem groups #112

Open briri opened 5 years ago

briri commented 5 years ago

Adds support for including optional gem groups: https://bundler.io/guides/groups.html The default for this new argument is nil.

For example if the following is in the Gemfile:

group :rollbar , optional: true do
  gem 'rollbar'
end

You can add set :bundle_with, %w{ rollbar }.join(' ') to your deploy.rb file(s)

So that bundler runs as bundle install --with rollbar

capistrano-bot commented 5 years ago

Thanks for the PR! This project lacks automated tests, which makes reviewing and approving PRs somewhat difficult. Please make sure that your contribution has not broken backwards compatibility or introduced any risky changes.

Generated by :no_entry_sign: Danger

briri commented 5 years ago

Ran tests against this code which resulted in:

00:14 bundler:install
      01 bundle install --path /my/application/shared/bundle --jobs 4 --with aws_s3 --without pgsql development test --deployment --quiet
manno commented 3 years ago

I was able to work around this by using set :bundle_config, { with: 'productionplus' }