Class: RankMirror::LocalFedora
- Inherits:
-
Object
- Object
- RankMirror::LocalFedora
- Defined in:
- lib/rankmirror/distro/local/fedora.rb
Instance Method Summary collapse
-
#initialize(mirrorlist, options) ⇒ LocalFedora
constructor
A new instance of LocalFedora.
- #sort ⇒ Object
Constructor Details
#initialize(mirrorlist, options) ⇒ LocalFedora
Returns a new instance of LocalFedora.
3 4 5 6 |
# File 'lib/rankmirror/distro/local/fedora.rb', line 3 def initialize(mirrorlist,) @options = @mirrorlist = RankMirror::Config.new(@options).parse(mirrorlist,@options.keys) end |
Instance Method Details
#sort ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rankmirror/distro/local/fedora.rb', line 8 def sort sorted = @mirrorlist.map!{|m| m.http if @options.country == m.country && m[@options.flavor] == "true" }.compact return sorted end |