Sha256: 3da1c2c838809135ed292734d10194e4f9f1f46a0bba9b031d8405b398a7a2d8

Contents?: true

Size: 319 Bytes

Versions: 15

Compression:

Stored size: 319 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)
        Controller::Base.new(Job.from_json(job.to_json)).perform
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
quebert-2.0.1 lib/quebert/backend/sync.rb
quebert-2.0.0 lib/quebert/backend/sync.rb
quebert-1.12.0 lib/quebert/backend/sync.rb
quebert-1.11.0 lib/quebert/backend/sync.rb
quebert-1.0.9 lib/quebert/backend/sync.rb
quebert-1.0.8 lib/quebert/backend/sync.rb
quebert-1.0.7 lib/quebert/backend/sync.rb
quebert-1.0.6 lib/quebert/backend/sync.rb
quebert-1.0.5 lib/quebert/backend/sync.rb
quebert-1.0.4 lib/quebert/backend/sync.rb
quebert-1.0.2 lib/quebert/backend/sync.rb
quebert-1.0.1 lib/quebert/backend/sync.rb
quebert-1.0.0 lib/quebert/backend/sync.rb
quebert-0.0.9 lib/quebert/backend/sync.rb
quebert-0.0.8 lib/quebert/backend/sync.rb