method

installation_parallelization

ruby latest stable - Class: Bundler::Installer

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

installation_parallelization(options)
private

No documentation available.

# File lib/bundler/installer.rb, line 200
    def installation_parallelization(options)
      if jobs = options.delete(:jobs)
        return jobs
      end

      return 1 unless can_install_in_parallel?

      auto_config_jobs = Bundler.feature_flag.auto_config_jobs?
      if jobs = Bundler.settings[:jobs]
        if auto_config_jobs
          jobs
        else
          [jobs.pred, 1].max
        end
      elsif auto_config_jobs
        processor_count
      else
        1
      end
    end