Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for optional gem groups #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

briri
Copy link

@briri briri commented May 8, 2019

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

updated default

updated README

updated README
@capistrano-bot
Copy link

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 🚫 Danger

@briri
Copy link
Author

briri commented May 8, 2019

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
Copy link

manno commented Dec 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants