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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

* Your contribution here!

# [1.5.1][] (08 May 2019)

* Added support for optional gem groups by allowing `:bundle_with, %w{optional_groupA optional_groupB}.join(' ')` to be set so that bundler will execute as: `bundle install --with optional_groupA optional_groupB`

# [1.5.0][] (23 Dec 2018)

Changes to default behavior
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is defaul
set :bundle_binstubs, -> { shared_path.join('bin') } # default: nil
set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
set :bundle_path, -> { shared_path.join('bundle') } # this is default. set it to nil for skipping the --path flag.
set :bundle_with, %w{msql}.join(' ') # default: nil
set :bundle_without, %w{development test}.join(' ') # this is default
set :bundle_flags, '--deployment --quiet' # this is default
set :bundle_env_variables, {} # this is default
Expand Down
2 changes: 1 addition & 1 deletion capistrano-bundler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'capistrano-bundler'
spec.version = '1.5.0'
spec.version = '1.5.1'
spec.authors = ['Tom Clements', 'Lee Hambley', 'Kir Shatrov']
spec.email = ['[email protected]', '[email protected]', '[email protected]']
spec.description = %q{Bundler support for Capistrano 3.x}
Expand Down
3 changes: 3 additions & 0 deletions lib/capistrano/tasks/bundler.cap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace :bundler do
set :bundle_binstubs, -> { shared_path.join('bin') }
set :bundle_gemfile, -> { release_path.join('Gemfile') }
set :bundle_path, -> { shared_path.join('bundle') }
set :bundle_with, nil
set :bundle_without, %w{development test}.join(' ')
set :bundle_flags, '--deployment --quiet'
set :bundle_jobs, nil
Expand All @@ -33,6 +34,7 @@ namespace :bundler do
else
options << "--binstubs #{fetch(:bundle_binstubs)}" if fetch(:bundle_binstubs)
options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
options << "--with #{fetch(:bundle_with)}" if fetch(:bundle_with)
options << "--without #{fetch(:bundle_without)}" if fetch(:bundle_without)
options << "#{fetch(:bundle_flags)}" if fetch(:bundle_flags)
execute :bundle, :install, *options
Expand Down Expand Up @@ -79,6 +81,7 @@ namespace :load do
set :bundle_binstubs, nil
set :bundle_gemfile, nil
set :bundle_path, -> { shared_path.join('bundle') }
set :bundle_with, nil
set :bundle_without, %w{development test}.join(' ')
set :bundle_flags, '--deployment --quiet'
set :bundle_jobs, 4
Expand Down