Sha256: b547d720c0008b5df2d937d6e5631c1000e46b7f2d81e93375d0e8f3727ccd8a
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
module Stack class Server attr_accessor :source, :target attr_accessor :generator attr_accessor :http_server attr_accessor :thread def initialize(generator) self.generator = generator self.source = self.generator.source self.target = self.generator.target end def observe self.http_server = WEBrick::HTTPServer.new( :Port => 4000, :DocumentRoot => self.target ) self.thread = Thread.new { self.http_server.start } self.thread.join() end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack-0.0.6 | lib/stack/server.rb |