Class: Pod::Command::Nexus::List
- Inherits:
-
Pod::Command::Nexus
- Object
- Pod::Command
- Pod::Command::Nexus
- Pod::Command::Nexus::List
- Defined in:
- lib/cocoapods-nexus/command/nexus/list.rb
Instance Method Summary collapse
Methods inherited from Pod::Command::Nexus
Constructor Details
This class inherits a constructor from Pod::Command::Nexus
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# 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 |