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

Version Path
cukeforker-2.1.1 lib/cukeforker/vnc_listener.rb
cukeforker-1.1.0 lib/cukeforker/vnc_listener.rb
cukeforker-1.0.0 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.5 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.4 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.3 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.2 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.1 lib/cukeforker/vnc_listener.rb
cukeforker-0.2.0 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.9 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.8 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.7 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.6 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.5 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.4 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.3 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.2 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.1 lib/cukeforker/vnc_listener.rb
cukeforker-0.1.0 lib/cukeforker/vnc_listener.rb
cukeforker-0.0.9 lib/cukeforker/vnc_listener.rb