Class: RankMirror::LocalOSS
- Inherits:
-
Object
- Object
- RankMirror::LocalOSS
- Defined in:
- lib/rankmirror/distro/local/oss.rb
Instance Method Summary collapse
-
#initialize(mirrorlist, options) ⇒ LocalOSS
constructor
A new instance of LocalOSS.
- #sort ⇒ Object
Constructor Details
#initialize(mirrorlist, options) ⇒ LocalOSS
Returns a new instance of LocalOSS.
3 4 5 6 |
# File 'lib/rankmirror/distro/local/oss.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/oss.rb', line 8 def sort sorted = @mirrorlist.map! { |m| m.http if @options.continent == m.continent && m[@options.flavor] == "true" } return sorted end |