Sha256: 3022c3c4b475413cb3daae2e7fcae0dda1618fad78d554abf292f0512a37ea11

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

#!/usr/bin/env ruby

require 'flapjack/filters/base'

module Flapjack
  module Filters
    class ScheduledMaintenance
      include Base

      def block?(event)
        result = @redis.exists("#{event.id}:scheduled_maintenance")
        @logger.debug("Filter: Scheduled Maintenance: #{result ? "block" : "pass"}")
        result
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flapjack-0.7.22 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.21 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.20 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.19 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.18 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.17 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.16 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.15 lib/flapjack/filters/scheduled_maintenance.rb