Sha256: 57f1c8b0d550138ed8ac3e5c5ae23f5aa0d01364eaaefbfdda78a79cf4a4c88a

Contents?: true

Size: 300 Bytes

Versions: 12

Compression:

Stored size: 300 Bytes

Contents

require 'sneakers'
require 'thread'
require 'redis'


redis_addr = compose_or_localhost("redis")
puts "REDIS is at #{redis_addr}"
$redis = Redis.new(:host => redis_addr)

class IntegrationWorker
  include Sneakers::Worker
  
  def work(msg)
    $redis.incr(self.class.queue_name)
    ack!
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
kicks-3.2.0 spec/fixtures/integration_worker.rb
kicks-3.1.1 spec/fixtures/integration_worker.rb
kicks-3.1.0 spec/fixtures/integration_worker.rb
kicks-3.0.0 spec/fixtures/integration_worker.rb
kicks-3.0.0.pre spec/fixtures/integration_worker.rb
sneakers-2.12.0 spec/fixtures/integration_worker.rb
sneakers-2.12.0.rc1 spec/fixtures/integration_worker.rb
sneakers-2.11.0 spec/fixtures/integration_worker.rb
sneakers-2.7.0 spec/fixtures/integration_worker.rb
sneakers-2.6.0 spec/fixtures/integration_worker.rb
sneakers-2.5.0 spec/fixtures/integration_worker.rb
sneakers-2.4.0 spec/fixtures/integration_worker.rb