Module: Wtails::WebServer

Extended by:
WebServer
Included in:
WebServer
Defined in:
lib/wtails/web_server.rb

Defined Under Namespace

Classes: Server

Instance Method Summary collapse

Instance Method Details

#run(opts, files) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/wtails/web_server.rb', line 5

def run(opts, files)
  ::Rack::Handler::Thin.run(
    Server.new,
    :Port => opts[:port]
    ) do |http_server|
    Wtails.http_server = http_server
  end
end