Module: Cloudtasker::Batch::Middleware

Defined in:
lib/cloudtasker/batch/middleware.rb,
lib/cloudtasker/batch/middleware/server.rb

Overview

Registration module

Defined Under Namespace

Classes: Server

Class Method Summary collapse

Class Method Details

.configureObject



15
16
17
18
19
20
21
22
# File 'lib/cloudtasker/batch/middleware.rb', line 15

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