class Bundler::Settings::MirrorConfig

used to setup the given mirror value.
This object provides a ‘update_mirror` method
Gets the configuration line and the value.
Class used to parse one configuration line

def all?

def all?
  @all
end

def initialize(config_line, value)

def initialize(config_line, value)
  uri, fallback =
    config_line.match(%r{\Amirror\.(all|.+?)(\.fallback_timeout)?\/?\z}).captures
  @fallback = !fallback.nil?
  @all = false
  if uri == "all"
    @all = true
  else
    @uri = Bundler::URI(uri).absolute? ? Settings.normalize_uri(uri) : uri
  end
  @value = value
end

def update_mirror(mirror)

def update_mirror(mirror)
  if @fallback
    mirror.fallback_timeout = @value
  else
    mirror.uri = Settings.normalize_uri(@value)
  end
end