diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-03 15:55:17 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-04 18:11:16 -0500 |
commit | 0dec895db65758c44690eecfb2d40b1acfcd55f9 (patch) | |
tree | 1f81aa509b52a1c164e1197ba0b72e0e3721501a /lib/bundler/installer/parallel_installer.rb | |
parent | 7fb0e91d9b7def611e2867bd41d8300c06594fde (diff) | |
download | bundler-0dec895db65758c44690eecfb2d40b1acfcd55f9.tar.gz |
[Installer] Move post-install messages to be an instance attribute
Diffstat (limited to 'lib/bundler/installer/parallel_installer.rb')
-rw-r--r-- | lib/bundler/installer/parallel_installer.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb index 18bfe0897c..5b0138cb4a 100644 --- a/lib/bundler/installer/parallel_installer.rb +++ b/lib/bundler/installer/parallel_installer.rb @@ -91,6 +91,7 @@ module Bundler enqueue_specs process_specs until @specs.all?(&:installed?) || @specs.any?(&:failed?) handle_error if @specs.any?(&:failed?) + @specs ensure worker_pool && worker_pool.stop end @@ -118,17 +119,10 @@ module Bundler # dequeue. def process_specs spec = worker_pool.deq - unless spec.failed? - spec.state = :installed - collect_post_install_message spec if spec.has_post_install_message? - end + spec.state = :installed unless spec.failed? enqueue_specs end - def collect_post_install_message(spec) - Bundler::Installer.post_install_messages[spec.name] = spec.post_install_message - end - def handle_error errors = @specs.select(&:failed?).map(&:error) if exception = errors.find {|e| e.is_a?(Bundler::Error) } |