class Pod::Source::Manager

Public Instance Methods

orgin_source_from_path(path)
Alias for: source_from_path
orgin_source_with_url(url)
Alias for: source_with_url
source_from_path(path) click to toggle source

根据nexus配置文件加载source

# File lib/cocoapods-nexus/hook/manager.rb, line 10
def source_from_path(path)
  @new_sources_by_path ||= Hash.new do |hash, key|
    nexus_file_path = File.join(key, ".nexus")
    hash[key] = if File.exist?(nexus_file_path)
                  Pod::NexusSource.new(key, File.read(nexus_file_path))
                else
                  orgin_source_from_path(key)
                end
  end
  @new_sources_by_path[path]
end
Also aliased as: orgin_source_from_path
source_with_url(url) click to toggle source

让nexus支持多repo

# File lib/cocoapods-nexus/hook/manager.rb, line 24
def source_with_url(url)
  nil
end
Also aliased as: orgin_source_with_url