method
compact_index_client
ruby latest stable - Class:
Bundler::Fetcher::CompactIndex
compact_index_client()private
No documentation available.
# File lib/bundler/fetcher/compact_index.rb, line 82
def compact_index_client
@compact_index_client ||= begin
SharedHelpers.filesystem_access(cache_path) do
CompactIndexClient.new(cache_path, client_fetcher)
end.tap do |client|
client.in_parallel = lambda do |inputs, &blk|
func = lambda {|object, _index| blk.call(object) }
worker = bundle_worker(func)
inputs.each {|input| worker.enq(input) }
inputs.map { worker.deq }
end
end
end
end