Sha256: 0837a30ebca4d0ba64892e9c2b53441c70dc1b3dbcc44bc9a84b9fffd7ef4776
Contents?: true
Size: 1004 Bytes
Versions: 5
Compression:
Stored size: 1004 Bytes
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end module Arachni class BrowserCluster module Jobs # Works together with {BrowserCluster#with_browser} to provide the callback # for this job with the {Browser} assigned to this job. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class BrowserProvider < Job def initialize( *args ) super() @args = args end def run browser.master.callback_for( self ).call *[browser, @args].flatten.compact end def to_s "#<#{self.class}:#{object_id} " << "callback=#{browser.master.callback_for( self ) if browser && browser.master} " << "time=#{@time} timed_out=#{timed_out?}>" end alias :inspect :to_s end end end end
Version data entries
5 entries across 5 versions & 1 rubygems