Sha256: 541221658c06acabbf7d76d09d476c83d7218f7d9fefb6d51d4b73a29b82f1ed

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require 'cloudtasker/redis_client'

require_relative 'extension/worker'
require_relative 'config'
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

1 entries across 1 versions & 1 rubygems

Version Path
cloudtasker-0.1.0 lib/cloudtasker/batch/middleware.rb