Sha256: ef7e7a95d2a3675a12864a75567105656ea89f067ce34a5c02809766ccfdc884

Contents?: true

Size: 449 Bytes

Versions: 17

Compression:

Stored size: 449 Bytes

Contents

require 'thread'

require "bundler/parallel_workers/worker"

module Bundler
  module ParallelWorkers
    autoload :UnixWorker, "bundler/parallel_workers/unix_worker"
    autoload :ThreadWorker, "bundler/parallel_workers/thread_worker"

    def self.worker_pool(size, job)
      if Bundler.current_ruby.mswin? || Bundler.current_ruby.jruby?
        ThreadWorker.new(size, job)
      else
        UnixWorker.new(size, job)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bundler-1.6.3 lib/bundler/parallel_workers.rb
bundler-1.6.2 lib/bundler/parallel_workers.rb
bundler-1.6.1 lib/bundler/parallel_workers.rb
bundler-1.6.0 lib/bundler/parallel_workers.rb
bundler-1.6.0.rc2 lib/bundler/parallel_workers.rb
bundler-1.6.0.rc lib/bundler/parallel_workers.rb
bundler-1.6.0.pre.2 lib/bundler/parallel_workers.rb
bundler-1.5.3 lib/bundler/parallel_workers.rb
bundler-1.6.0.pre.1 lib/bundler/parallel_workers.rb
bundler-1.5.2 lib/bundler/parallel_workers.rb
bundler-1.5.1 lib/bundler/parallel_workers.rb
bundler-1.5.0 lib/bundler/parallel_workers.rb
bundler-1.5.0.rc.2 lib/bundler/parallel_workers.rb
bundler-1.5.0.rc.1 lib/bundler/parallel_workers.rb
bundler-1.4.0.rc.1 lib/bundler/parallel_workers.rb
bundler-1.4.0.pre.2 lib/bundler/parallel_workers.rb
bundler-1.4.0.pre.1 lib/bundler/parallel_workers.rb