Sha256: 5476ab076c529937fea16207912f74e4ae84158fb2bc99c04301cfc93d11b4d1

Contents?: true

Size: 500 Bytes

Versions: 10

Compression:

Stored size: 500 Bytes

Contents

#!/usr/bin/env ruby

require 'flapjack/pikelet'

module Flapjack
  module Notification

    module Common

      include Flapjack::Pikelet

      # TODO to make this testable, work out a supported way to make the passed redis connection
      # use the test db
      def perform(notification)
        bootstrap
        @logger.debug "Woo, got a notification to send out: #{notification.inspect}"
        dispatch(notification, :logger => @logger, :redis => ::Redis.new)
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flapjack-0.6.32 lib/flapjack/notification/common.rb
flapjack-0.6.31 lib/flapjack/notification/common.rb
flapjack-0.6.30 lib/flapjack/notification/common.rb
flapjack-0.6.29 lib/flapjack/notification/common.rb
flapjack-0.6.28 lib/flapjack/notification/common.rb
flapjack-0.6.27 lib/flapjack/notification/common.rb
flapjack-0.6.26 lib/flapjack/notification/common.rb
flapjack-0.6.25 lib/flapjack/notification/common.rb
flapjack-0.6.24 lib/flapjack/notification/common.rb
flapjack-0.6.23 lib/flapjack/notification/common.rb