private Method

Generic.check_registry(v)

There's no documentation for this item.

Source Code

# File uri/generic.rb, line 435
def check_registry(v)
  return v unless v

  # raise if both server and registry are not nil, because:
  # authority     = server | reg_name
  # server        = [ [ userinfo "@" ] hostport ]
  if @host || @port || @user # userinfo = @user + ':' + @password
    raise InvalidURIError, 
      "can not set registry with host, port, or userinfo"
  elsif v && REGISTRY !~ v
    raise InvalidComponentError,
      "bad component(expected registry component): #{v}"
  end

  return true
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.