class Pod::Command::Nexus::List
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods-nexus/command/nexus/list.rb, line 14 def run repos_dir = Pod::Config.instance.repos_dir dirs = Dir.glob "#{repos_dir}/*/" repos = [] dirs.each do |dir| next unless File.exist?("#{dir}/.nexus") url = File.read("#{dir}/.nexus") repos.push Pod::NexusSource.new(dir, url) if url end repos.each { |repo| UI.title repo.name do UI.puts "- URL: #{repo.url}" UI.puts "- Path: #{repo.repo}" end } end