Class: Ramaze::Adapter::Ebb
- Inherits:
-
Base
show all
- Defined in:
- lib/ramaze/adapter/ebb.rb
Class Method Summary
collapse
Methods inherited from Base
before, before_call, call, middleware_respond, respond, start, stop
Class Method Details
.run_server(host, port) ⇒ Object
8
9
10
11
12
13
|
# File 'lib/ramaze/adapter/ebb.rb', line 8
def run_server host, port
::Ebb.log = StringIO.new
thread = Thread.new{ ::Ebb.start_server self, :port => port }
thread[:adapter] = self
thread
end
|
15
16
17
|
# File 'lib/ramaze/adapter/ebb.rb', line 15
def shutdown
::Ebb.stop_server
end
|