Sha256: 2b7cf78f2c75f235459efa47799e31a14489c379735489a53d53d824b90e84ee

Contents?: true

Size: 374 Bytes

Versions: 15

Compression:

Stored size: 374 Bytes

Contents

require_relative "../../../../spec/support/file_helper"

class TestWorker
  QUEUE_NAME  = :sneakers_queue
  ROUTING_KEY  = :sneakers_routing_key
  VERIFICATION_FILE = "tmp/sneakers.verified".freeze

  include Sneakers::Worker
  include FileHelper

  from_queue QUEUE_NAME, routing_key: ROUTING_KEY

  def work(_message)
    create_file(VERIFICATION_FILE)
    ack!
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sapience-1.0.3 test_apps/rails/app/workers/test_worker.rb
sapience-1.0.2 test_apps/rails/app/workers/test_worker.rb
sapience-1.0.1 test_apps/rails/app/workers/test_worker.rb
sapience-1.0.0 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.18 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.17 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.16 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.15 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.14 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.13 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.12 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.11 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.10 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.9 test_apps/rails/app/workers/test_worker.rb
sapience-0.2.8 test_apps/rails/app/workers/test_worker.rb