Module: DebMirrorApi::Helpers
- Defined in:
- lib/debmirrorapihelpers.rb
Instance Method Summary collapse
Instance Method Details
#mirror_list ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/debmirrorapihelpers.rb', line 4 def mirror_list if File.file?('/var/lib/debmirror/mirror.index') list = [] File.readlines('/var/lib/debmirror/mirror.index').each do |mirror| list.push(mirror.chomp()) end list else false end end |