Method: Puppet::Network::HTTP::Route#matches?

Defined in:
lib/puppet/network/http/route.rb

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


71
72
73
74
75
76
77
78
79
80
# File 'lib/puppet/network/http/route.rb', line 71

def matches?(request)
  Puppet.debug { "Evaluating match for #{inspect}" }
  if match(request.routing_path)
    return true
  else
    Puppet.debug { "Did not match path (#{request.routing_path.inspect})" }
  end

  false
end