Sha256: 4af4721f31bc78efc70065962058979d84274e9404bdf780d5747dbf23a7e809

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require 'simpleworker'
require 'cucumber/cli/main'

redis      = Redis.new
task_queue = SimpleWorker::TaskQueue.new(redis, 'my_hostname', ENV['JOBID'])

task_queue.fire_start

task_queue.each_task do |task|
  status = nil
  begin
    Cucumber::Cli::Main.execute [task]
  rescue SystemExit => e
    status = e.success?
  end

  task_queue.fire_log_message "Cucumber task: #{task} status: #{status}"
end

task_queue.fire_stop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simpleworker-0.1.1 examples/cucumber_worker.rb