Sha256: 495f644c73010f67cfe9c127c7262d9eebabfd0331af4bf5cc04290bb1d6b00f

Contents?: true

Size: 562 Bytes

Versions: 23

Compression:

Stored size: 562 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

        # Inject worker extension on main module
        Cloudtasker::Worker.include(Extension::Worker)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cloudtasker-0.14.rc1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.13.2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.13.1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.13.0 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.13.rc2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.13.rc1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.2 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.11.1 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.0 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc11 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc10 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc9 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc8 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc7 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc6 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc5 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc4 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc3 lib/cloudtasker/batch/middleware.rb
cloudtasker-0.12.rc2 lib/cloudtasker/batch/middleware.rb