Skip to content

added support for optional gem groups#112

Open
briri wants to merge 2 commits intocapistrano:masterfrom
briri:support-for-optional-gem-groups
Open

added support for optional gem groups#112
briri wants to merge 2 commits intocapistrano:masterfrom
briri:support-for-optional-gem-groups

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