@@ -3,17 +3,17 @@ class Puppet::Network::HTTP::API
33 require_relative '../../../puppet/version'
44
55 def self . not_found
6- Puppet ::Network ::HTTP ::Route .
7- path ( /.*/ ) .
8- any ( lambda do |req , _res |
6+ Puppet ::Network ::HTTP ::Route
7+ . path ( /.*/ )
8+ . any ( lambda do |req , _res |
99 raise Puppet ::Network ::HTTP ::Error ::HTTPNotFoundError . new ( "No route for #{ req . method } #{ req . path } " , Puppet ::Network ::HTTP ::Issues ::HANDLER_NOT_FOUND )
1010 end )
1111 end
1212
1313 def self . not_found_upgrade
14- Puppet ::Network ::HTTP ::Route .
15- path ( /.*/ ) .
16- any ( lambda do |_req , _res |
14+ Puppet ::Network ::HTTP ::Route
15+ . path ( /.*/ )
16+ . any ( lambda do |_req , _res |
1717 raise Puppet ::Network ::HTTP ::Error ::HTTPNotFoundError . new ( "Error: Invalid URL - Puppet expects requests that conform to the " +
1818 "/puppet and /puppet-ca APIs.\n \n " +
1919 "Note that Puppet 3 agents aren't compatible with this version; if you're " +
@@ -28,10 +28,10 @@ def self.not_found_upgrade
2828
2929 def self . server_routes
3030 server_prefix = Regexp . new ( "^#{ Puppet ::Network ::HTTP ::SERVER_URL_PREFIX } /" )
31- Puppet ::Network ::HTTP ::Route . path ( server_prefix ) .
32- any .
33- chain ( Puppet ::Network ::HTTP ::API ::Server ::V3 . routes ,
34- Puppet ::Network ::HTTP ::API . not_found )
31+ Puppet ::Network ::HTTP ::Route . path ( server_prefix )
32+ . any
33+ . chain ( Puppet ::Network ::HTTP ::API ::Server ::V3 . routes ,
34+ Puppet ::Network ::HTTP ::API . not_found )
3535 end
3636
3737 def self . master_routes
0 commit comments