PageRenderTime 58ms CodeModel.GetById 51ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/syntaxhighlighter_3.0.83/tests/webrick.rb

#
Ruby | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | c87c5f4cc59c5abbeff64cd57d8e039f MD5 | raw file
 1require 'webrick'
 2include WEBrick
 3
 4s = HTTPServer.new(
 5  :Port => 2010, 
 6  :DocumentRoot => Dir::pwd
 7)
 8s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts')
 9s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles')
10trap('INT') { s.stop }
11s.start