class Pod::Command::RepoSq::List
Subclass of {RepoSq} Provides support for the `pod repo-sq list` command, which lists the Square SDK repositories currently registered on the user's cocoapods local repositories store.
Public Instance Methods
run()
click to toggle source
Lists all Square SDK repositories registered on the current user {CocoapodsRepoSq::RepositoryStore}.
# File lib/pod/command/repo_sq/list.rb, line 38 def run repositories = repository_store.list repositories.each do |repository| UI.title "Square SDK repository: #{repository.name}" do UI.puts " - URL: #{repository.url}" UI.puts " - Path: #{repository.path}" end end UI.puts "\n" n = repositories.length UI.puts "#{n} #{n != 1 ? 'repositories' : 'repository'}".green end