lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.11 vs lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.12

- old
+ new

@@ -1,5 +1,6 @@ +require "parallel" require_relative "base" require_relative "../helper/zip" module PodPrebuild class CacheFetcher < CommandExecutor @@ -55,10 +56,11 @@ FileUtils.cp( @config.manifest_path(in_cache: true), @config.manifest_path ) end - Dir[@config.generated_frameworks_dir(in_cache: true) + "/*.zip"].each do |path| + zip_paths = Dir[@config.generated_frameworks_dir(in_cache: true) + "/*.zip"] + Parallel.each(zip_paths, in_threads: 8) do |path| ZipUtils.unzip(path, to_dir: @config.generated_frameworks_dir) end end end end