Method: AptSpy2#list
- Defined in:
- lib/apt/spy2.rb
#list ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/apt/spy2.rb', line 52 def list mirrors = retrieve([:country], use_launchpad?()) @writer = Apt::Spy2::Writer.new([:format]) @writer.complete(mirrors) puts @writer.to_json if @writer.json? puts mirrors unless @writer.json? end |