Class: Arachni::BrowserCluster::Jobs::BrowserProvider

Inherits:
Arachni::BrowserCluster::Job show all
Defined in:
lib/arachni/browser_cluster/jobs/browser_provider.rb

Overview

Works together with Arachni::BrowserCluster#with_browser to provide the callback for this job with the Arachni::Browser assigned to this job.

Author:

Instance Attribute Summary

Attributes inherited from Arachni::BrowserCluster::Job

#browser, #forwarder

Instance Method Summary collapse

Methods inherited from Arachni::BrowserCluster::Job

#==, #clean_copy, #configure_and_run, #dup, #forward, #forward_as, #hash, #id, #initialize, #never_ending=, #never_ending?, #save_result

Constructor Details

This class inherits a constructor from Arachni::BrowserCluster::Job

Instance Method Details

#runObject



19
20
21
# File 'lib/arachni/browser_cluster/jobs/browser_provider.rb', line 19

def run
    browser.master.callback_for( self ).call browser
end

#to_sObject Also known as: inspect



23
24
25
# File 'lib/arachni/browser_cluster/jobs/browser_provider.rb', line 23

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