Method: Bundler::ParallelInstaller#call

Defined in:
lib/bundler/installer/parallel_installer.rb

#callObject

[View source]

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/bundler/installer/parallel_installer.rb', line 85

def call
  if @rake
    do_install(@rake, 0)
    Gem::Specification.reset
  end

  if @size > 1
    install_with_worker
  else
    install_serially
  end

  handle_error if failed_specs.any?
  @specs
ensure
  worker_pool&.stop
end