class Pod::Installer::Analyzer

Public Instance Methods

old_update_repositories()

> 1.5.3 版本 rewrite update_repositories

Alias for: update_repositories
update_repositories() click to toggle source
# File lib/cocoapods-tdf-bin/native/analyzer.rb, line 34
def update_repositories
  if installation_options.update_source_with_multi_processes
    # 并发更新私有源
    # 这里多线程会导致 pod update 额外输出 --verbose 的内容
    # 不知道为什么?
    Parallel.each(sources.uniq(&:url), in_processes: 4) do |source|
      if source.git?
        config.sources_manager.update(source.name, true)
      else
        UI.message "Skipping `#{source.name}` update because the repository is not a git source repository."
      end
    end
    @specs_updated = true
  else
    old_update_repositories
  end
end
Also aliased as: old_update_repositories