Method: Bundler::Settings::Mirrors#for
- Defined in:
- lib/bundler/mirror.rb
permalink #for(uri) ⇒ Object
Returns a mirror for the given uri.
Depending on the uri having a valid mirror or not, it may be a
mirror that points to the provided uri
22 23 24 25 26 27 28 |
# File 'lib/bundler/mirror.rb', line 22 def for(uri) if @all.validate!(@prober).valid? @all else fetch_valid_mirror_for(Settings.normalize_uri(uri)) end end |