class Object
Constants
- UTIL
Public Instance Methods
create_source_from_name(source_name)
click to toggle source
@param source_name => name of source incoming from the Podfile configuration
@return [ArtSource] source of the local spec repo which corresponds to to the given name
# File lib/cocoapods_plugin.rb, line 21 def create_source_from_name(source_name) art_repo = "#{UTIL.get_repos_art_dir()}/#{source_name}" repos_dir = Pod::Config.instance.repos_dir repo = repos_dir + source_name Pod::UI.puts "#{art_repo}/.artpodrc\n" if File.exist?("#{art_repo}/.artpodrc") url = File.read("#{art_repo}/.artpodrc") Pod::ArtSource.new(art_repo, url) elsif Dir.exist?("#{repo}") Pod::ArtSource.new(repo, ''); else raise Pod::Informative.exception "repo #{source_name} does not exist." end end