Sha256: 97a696d7624fdbabc41a509d16be58c62fa643eb604a07f1e5edb8954aeb56a4
Contents?: true
Size: 456 Bytes
Versions: 19
Compression:
Stored size: 456 Bytes
Contents
# -*- coding: utf-8 -*- # Author:: TAC (tac@tac42.net) require 'glint' server = Glint::Server.new do |port| require 'webrick' http = WEBrick::HTTPServer.new({ DocumentRoot: 'spec/htdocs', BindAddress: '127.0.0.1', Port: port, AccessLog: [] }) trap(:INT) { http.shutdown } trap(:TERM) { http.shutdown } http.start end server.start Glint::Server.info[:httpserver] = { host: "127.0.0.1", port: server.port }
Version data entries
19 entries across 19 versions & 1 rubygems