Sha256: b8268a063c9a322f2e7bd5a500ed53e63c9aaedddfc72856691c83fb62468acb

Contents?: true

Size: 512 Bytes

Versions: 28

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require 'cloudtasker/redis_client'

require_relative 'extension/worker'
require_relative 'batch_progress'
require_relative 'job'

require_relative 'middleware/server'

module Cloudtasker
  module Batch
    # Registration module
    module Middleware
      def self.configure
        Cloudtasker.configure do |config|
          config.server_middleware { |c| c.add(Middleware::Server) }
        end
        Cloudtasker::Worker.include(Extension::Worker)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
cloudtasker-0.10.2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.5 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.11.rc2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.11.rc1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.4 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.0 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.3 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc8 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc7 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc6 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc5 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc4 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc3 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.10.rc1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.9.0 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.8.2 lib/cloudtasker/batch/middleware.rb