class Pod::Source::Manager

Public Instance Methods

create_source_with_url(url) click to toggle source
# File lib/cocoapods_plugin.rb, line 53
def create_source_with_url(url)
  require 'coding_ar_util'
  
  name = name_for_url(url)
  if CodingArUtil.coding_ar_service?(url)
    Command::Repo::AddCodingAr.parse([name, url]).run
  else
    orig_create_source_with_url(url)
  end

  source = source_with_url(url)
  raise "Unable to create a source with URL #{url}" unless source
  source
end
Also aliased as: orig_create_source_with_url
orig_create_source_with_url(url)
orig_source_from_path(path)
Alias for: source_from_path
source_from_path(path) click to toggle source
# File lib/cocoapods_plugin.rb, line 36
def source_from_path(path)
  @sources_by_path ||= Hash.new do |hash, key|
    hash[key] = case
                when key.basename.to_s == Pod::TrunkSource::TRUNK_REPO_NAME
                  TrunkSource.new(key)
                when (key + '.url').exist?
                  CDNSource.new(key)
                when (key + '.coding_ar_url').exist?
                  CodingArSource.new(key)
                else
                  Source.new(key)
                end
  end

  @sources_by_path[path]
end
Also aliased as: orig_source_from_path