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

Version Path
arachni-1.3.2 spec/support/factories/browser_cluster/job.rb
arachni-1.3.1 spec/support/factories/browser_cluster/job.rb
arachni-1.3 spec/support/factories/browser_cluster/job.rb
arachni-1.2.1 spec/support/factories/browser_cluster/job.rb
arachni-1.2 spec/support/factories/browser_cluster/job.rb
arachni-1.1 spec/support/factories/browser_cluster/job.rb
arachni-1.0.6 spec/support/factories/browser_cluster/job.rb
arachni-1.0.5 spec/support/factories/browser_cluster/job.rb
arachni-1.0.4 spec/support/factories/browser_cluster/job.rb
arachni-1.0.3 spec/support/factories/browser_cluster/job.rb
arachni-1.0.2 spec/support/factories/browser_cluster/job.rb
arachni-1.0.1 spec/support/factories/browser_cluster/job.rb
arachni-1.0 spec/support/factories/browser_cluster/job.rb