Class: WebSystem::IodineServerRack
- Inherits:
-
ServerRack
- Object
- Liza::Unit
- Liza::Controller
- Rack
- ServerRack
- WebSystem::IodineServerRack
- Defined in:
- lib/web_system/sub/rack/server_racks/iodine_server_rack.rb
Class Method Summary collapse
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Class Method Details
.call(rack_app) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/web_system/sub/rack/server_racks/iodine_server_rack.rb', line 3 def self.call rack_app rack_panel = WebBox[:rack] host = rack_panel.get :host port = rack_panel.get :port # require "iodine" # TODO: improve custom configurability for iodine # https://github.com/boazsegev/iodine/tree/master/examples require "rack/handler/iodine" handler = ::Iodine::Rack handler.run rack_app, Host: host, Port: port end |