Sha256: a004a1477fad5a0e9f66eea2e77099293ccaba6e224306e90651d3c9e9eb8868
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
# -*- coding: utf-8 -*- 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.9 | lib/server.rb |
m2m-0.2.8 | lib/server.rb |
m2m-0.2.7 | lib/server.rb |