Class: Arachni::BrowserCluster::Jobs::BrowserProvider
- Inherits:
-
Arachni::BrowserCluster::Job
- Object
- Arachni::BrowserCluster::Job
- Arachni::BrowserCluster::Jobs::BrowserProvider
- 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.
Instance Attribute Summary
Attributes inherited from Arachni::BrowserCluster::Job
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
#run ⇒ Object
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_s ⇒ Object
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 |