Skip to content

Commit

Permalink
Explicitly report that the installation command is not required (#106)
Browse files Browse the repository at this point in the history
* Explicitly report that bundler operates but the installation command is not required
  • Loading branch information
NikolayRys authored and mattbrictson committed Oct 14, 2018
1 parent 2618cde commit 626e6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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!
* When "bundle install" is skipped due to a Gemfile's dependencies are being satisfied, print a message to the log instead of silently skipping

# [1.3.0][] (22 Sep 2017)

Expand Down
4 changes: 3 additions & 1 deletion lib/capistrano/tasks/bundler.cap
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ namespace :bundler do
options = []
options << "--gemfile #{fetch(:bundle_gemfile)}" if fetch(:bundle_gemfile)
options << "--path #{fetch(:bundle_path)}" if fetch(:bundle_path)
unless test(:bundle, :check, *options)
if test(:bundle, :check, *options)
info "The Gemfile's dependencies are satisfied, skipping installation"
else
options << "--binstubs #{fetch(:bundle_binstubs)}" if fetch(:bundle_binstubs)
options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
options << "--without #{fetch(:bundle_without)}" if fetch(:bundle_without)
Expand Down

0 comments on commit 626e6db

Please sign in to comment.