Sha256: 3e1a9dfbdf6177c3a42e7a9a6fc87d4c155fd4336903018f6aecaee80eb76270
Contents?: true
Size: 479 Bytes
Versions: 22
Compression:
Stored size: 479 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.data.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
22 entries across 22 versions & 1 rubygems