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

Allow configuration of SSHKit options #93

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [Unreleased][] (master)

* Your contribution here!
* Add `bundle_task_ssh_kit_options` option to configure SSHKit options

# [1.2.0][] (1 Oct 2016)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ set :bundle_without, %w{development test}.join(' ') # this is defaul
set :bundle_flags, '--deployment --quiet' # this is default
set :bundle_env_variables, {} # this is default
set :bundle_clean_options, "" # this is default. Use "--dry-run" if you just want to know what gems would be deleted, without actually deleting them
set :bundle_task_ssh_kit_options, { in: :groups, limit: 50 } # default {}
```

You can parallelize the installation of gems with bundler's jobs feature.
Expand Down
4 changes: 2 additions & 2 deletions lib/capistrano/tasks/bundler.cap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace :bundler do
set :bundle_clean_options, ""
DESC
task :install do
on fetch(:bundle_servers) do
on fetch(:bundle_servers), fetch(:bundle_task_ssh_kit_options, {}) do
within release_path do
with fetch(:bundle_env_variables, {}) do
options = []
Expand Down Expand Up @@ -54,7 +54,7 @@ namespace :bundler do

desc "Remove unused gems installed by bundler"
task :clean do
on fetch(:bundle_servers) do
on fetch(:bundle_servers), fetch(:bundle_task_ssh_kit_options, {}) do
within release_path do
with fetch(:bundle_env_variables, {}) do
execute :bundle, :clean, fetch(:bundle_clean_options, "")
Expand Down