class Pod::Source::Manager
Public Instance Methods
source_from_path(path)
click to toggle source
@return [Source] The Source
at a given path.
@param [Pathname] path
The local file path to one podspec repo.
# File lib/cocoapods_plugin.rb, line 135 def source_from_path(path) @sources_by_path ||= Hash.new do |hash, key| art_repo = "#{UTIL.get_repos_art_dir()}/#{key.basename}" hash[key] = case when key.basename.to_s == Pod::TrunkSource::TRUNK_REPO_NAME TrunkSource.new(key) when (key + '.url').exist? CDNSource.new(key) when File.exist?("#{art_repo}/.artpodrc") create_source_from_name(key.basename) else Source.new(key) end end @sources_by_path[path] end
Also aliased as: orig_source_from_path