Sha256: 1dbbdeff08e873594adce1c94d16ccf42dfbc81cfc81e8c6ce626a3776df9134
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
module CukeForker class VncListener < AbstractListener def initialize(pool) @pool = pool end def on_worker_starting(worker) worker.data.vnc = @pool.get end def on_worker_finished(worker) @pool.release worker.vnc worker.data.vnc = nil end def on_worker_forked(worker) ENV['DISPLAY'] = worker.data.vnc.display end def on_run_finished(failed) @pool.stop end end # VncListener end # CukeForker
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cukeforker-0.0.6 | lib/cukeforker/vnc_listener.rb |