Module: Cloudtasker::UniqueJob::Middleware

Defined in:
lib/cloudtasker/unique_job/middleware.rb,
lib/cloudtasker/unique_job/middleware/client.rb,
lib/cloudtasker/unique_job/middleware/server.rb

Overview

Registration module

Defined Under Namespace

Classes: Client, Server

Class Method Summary collapse

Class Method Details

.configureObject



27
28
29
30
31
32
# File 'lib/cloudtasker/unique_job/middleware.rb', line 27

def self.configure
  Cloudtasker.configure do |config|
    config.client_middleware { |c| c.add(Middleware::Client) }
    config.server_middleware { |c| c.add(Middleware::Server) }
  end
end