4
class DummyLog < WEBrick::BasicLog
5
def initialize() super(self) end
9
def start_server(config={})
10
raise "already started" if @__server
14
@__server = WEBrick::HTTPServer.new(
16
:Logger => DummyLog.new,
18
:StartCallback => proc { @__started = true }
26
nil until @__started # wait until the server is ready
33
nil while @__started # wait until the server is down