Sha256: ef819a708e0d53110249d2bf3138919d4a838a72d9cd498440c58e75be4a361f
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smallcage-0.2.6 | lib/smallcage/commands/server.rb |
smallcage-0.2.5 | lib/smallcage/commands/server.rb |