check_registry(v)
private
Show source
def check_registry(v)
return v unless v
if @host || @port || @user
raise InvalidURIError,
"can not set registry with host, port, or userinfo"
elsif v && parser.regexp[:REGISTRY] !~ v
raise InvalidComponentError,
"bad component(expected registry component): #{v}"
end
return true
end