Class: Rackup::Server
- Inherits:
-
Object
- Object
- Rackup::Server
- Defined in:
- lib/hoodoo/services/middleware/rack_monkey_patch.rb
Overview
Part of the Rack monkey patch. See file “rack_monkey_path.rb”‘s documentation for details.
Class Method Summary collapse
-
.start_and_record_host_and_port(options = nil) ⇒ Object
(also: start)
Part of the Rack monkey patch.
Class Method Details
.start_and_record_host_and_port(options = nil) ⇒ Object Also known as: start
Part of the Rack monkey patch. See file “rack_monkey_path.rb”‘s documentation for details.
This method is aliased in place of Rackup::Server::start and reads the passed-in options hash to attempt to determine the host name and port number under which a Rack based service is running. It then calls through to Rack’s original ::start implementation.
options
-
Options (see original Rackup::Server documentation).
55 56 57 58 |
# File 'lib/hoodoo/services/middleware/rack_monkey_patch.rb', line 55 def start_and_record_host_and_port( = nil ) Hoodoo::Services::Middleware.record_host_and_port( ) racks_original_start( ) end |