Sha256: ed063a6e7d7ee5116f668ff90e3b6e5b5f666bb20457359e7f35250334c70240

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

module Quebert
  module Backend
    # Run the job syncronously. This is typically used in a testing environment
    # or could be used as a fallback if other backends fail to initialize
    class Sync
      def put(job, *args)
        Consumer::Base.new(job.new(args)).perform
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quebert-0.0.4 lib/quebert/backend/sync.rb
quebert-0.0.3 lib/quebert/backend/sync.rb
quebert-0.0.1 lib/quebert/backend/sync.rb
quebert-0.0.0 lib/quebert/backend/sync.rb