Sha256: 199bde6f10f0342e4d21de30a486667d8a1ea22b7ea3438af4832dc42b5dfadb

Contents?: true

Size: 376 Bytes

Versions: 59

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby

require 'flapjack/filters/base'

module Flapjack
  module Filters
    class ScheduledMaintenance
      include Base

      def block?(event, entity_check, previous_state)
        result = entity_check.in_scheduled_maintenance?
        @logger.debug("Filter: Scheduled Maintenance: #{result ? "block" : "pass"}")
        result
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
flapjack-0.8.7 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.6 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.5 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.4 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.3 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.2 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.8.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.35 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.34 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.33 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.32 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.31 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.30 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.29 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.28 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.27 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.26 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.7.25 lib/flapjack/filters/scheduled_maintenance.rb