Sha256: f78a223979e1d5ba1aa699de3abc2dde78f634c24be5b9d6d2103f0587546f7f
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
require 'rapnd/daemon' require 'rapnd/notification' require 'rapnd/config' require 'redis' module Rapnd extend self def queue(queue_name, message) self.redis.lpush(queue_name, Marshal.dump(message)) end def redis @redis ||= Redis.new(:host => Rapnd.config.redis_host, :port => Rapnd.config.redis_port) end def configure block_given? ? yield(Config) : Config end alias :config :configure end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rapnd-0.5.0 | lib/rapnd.rb |
rapnd-0.4.1 | lib/rapnd.rb |
rapnd-0.4.0 | lib/rapnd.rb |
rapnd-0.3.1 | lib/rapnd.rb |
rapnd-0.3.0 | lib/rapnd.rb |