Sha256: 550a2b418129bf971f1d6041c8ec0c1315205161e649ab0a269d0185548cc63a
Contents?: true
Size: 571 Bytes
Versions: 13
Compression:
Stored size: 571 Bytes
Contents
Factory.define :custom_job do class CustomJob < Arachni::BrowserCluster::Job class Result < Arachni::BrowserCluster::Job::Result attr_accessor :my_data end def run save_result my_data: 'Some stuff' end end CustomJob.new end Factory.define :sleep_job do class CustomJob < Arachni::BrowserCluster::Job class Result < Arachni::BrowserCluster::Job::Result attr_accessor :my_data end def run loop { sleep 1 } end end CustomJob.new end
Version data entries
13 entries across 13 versions & 1 rubygems