Sha256: 98c74c7feb37a428e1c431fb9e95e6e5899ffbd916b81680b12bed796e0dcba9

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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 run
        browser.master.callback_for( self ).call browser
    end

    def to_s
        "#<#{self.class}:#{object_id} callback=#{browser.master.callback_for( self ) if browser && browser.master}>"
    end
    alias :inspect :to_s

end

end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arachni-1.2.1 lib/arachni/browser_cluster/jobs/browser_provider.rb
arachni-1.2 lib/arachni/browser_cluster/jobs/browser_provider.rb
arachni-1.1 lib/arachni/browser_cluster/jobs/browser_provider.rb