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-1.6.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.6.0rc4 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.6.0rc3 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.6.0rc2 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.6.0rc1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.5.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.5.0rc1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.4.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.4.0rc1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.3.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.3.0rc3 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.3.0rc2 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.3.0rc1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.2 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.1rc3 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.1rc2 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.1rc1 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-1.2.0 lib/flapjack/filters/scheduled_maintenance.rb
flapjack-0.9.6 lib/flapjack/filters/scheduled_maintenance.rb