Sha256: 939e6121c02172c277b611a4a9d6c135fb30aefade5613ea8d0d335bc1e6b1a0

Contents?: true

Size: 503 Bytes

Versions: 7

Compression:

Stored size: 503 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 => ::Resque.redis)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flapjack-0.6.39 lib/flapjack/notification/common.rb
flapjack-0.6.38 lib/flapjack/notification/common.rb
flapjack-0.6.37 lib/flapjack/notification/common.rb
flapjack-0.6.36 lib/flapjack/notification/common.rb
flapjack-0.6.35 lib/flapjack/notification/common.rb
flapjack-0.6.34 lib/flapjack/notification/common.rb
flapjack-0.6.33 lib/flapjack/notification/common.rb