Sha256: 64181e224bf4b3e7029a1f76d4d4f3781f3e1953edabbdedbdc39dea4920dcb6
Contents?: true
Size: 377 Bytes
Versions: 19
Compression:
Stored size: 377 Bytes
Contents
module SmallCage::Commands class Server def self.execute(opts) document_root = opts[:path] port = opts[:port] server = SmallCage::HTTPServer.new(document_root, port) sighandler = Proc.new {|signal| server.shutdown} SmallCage::Application.add_signal_handler(["INT", "TERM"], sighandler) server.start end end end
Version data entries
19 entries across 19 versions & 2 rubygems