Sha256: 4745dd7b144ef0c6697dc96c64015bda3c728328067232e7f66fa08e91565d18
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
module Pousse class RedisDelivery def initialize values = {} configuration = Pousse::configuration @redis_config = configuration.redis end def deliver!(mail) begin redis = Redis.new @redis_config mail.to.each do |to| redis.publish(to, mail.body.decoded) end rescue Exception => e #TODO: Use a real logguer ?? puts "NOTIFICATION NOT DELIVERED: #{e.message}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pousse-0.0.4 | lib/pousse/redis_delivery.rb |
pousse-0.0.3 | lib/pousse/redis_delivery.rb |