Sha256: 1c3be8ac26673fda7f39d2fdc7565a13fafb9fa79fc97fe06705e366a1e21f04

Contents?: true

Size: 413 Bytes

Versions: 51

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require 'cloudtasker/redis_client'

require_relative 'schedule'
require_relative 'job'
require_relative 'middleware/server'

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

Version data entries

51 entries across 51 versions & 1 rubygems

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