Sha256: 3c5fe0b5d029afeb7ace0fe608749c9ea6b0e8ff2956dad7c393e84bb2ee2387
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
require 'webrick' require_relative './util' require_relative './setup' # class Server < ::Rack::Server # def app # Rack::Directory::new Setup.instance.target_dir # end # end class Server def start(port) port = port || 8000 root = Setup.instance.target_dir server = WEBrick::HTTPServer.new :Port => port, :DocumentRoot => root server.start end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
m2m-0.2.3 | lib/server.rb |
m2m-0.2.1 | lib/server.rb |
m2m-0.2.0 | lib/server.rb |