Class: WebSystem::PumaServerRack

Inherits:
ServerRack show all
Defined in:
lib/web_system/sub/rack/server_racks/puma_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
# File 'lib/web_system/sub/rack/server_racks/puma_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 "rack/handler/puma"
  handler = ::Rack::Handler::Puma
  handler.run rack_app, Host: host, Port: port
end