Sha256: 1a5d4491ce740014244d26aaa1e74522d0f78902f46530f8e57ecfcff956b292
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
require 'logger' require 'forwardable' require 'yaml' require 'bunny' require 'jackhammer/version' require 'jackhammer/exceptions' require 'jackhammer/log' require 'jackhammer/configuration' require 'jackhammer/message_receiver' require 'jackhammer/queue' require 'jackhammer/topic' require 'jackhammer/topic_manager' require 'jackhammer/server' module Jackhammer class << self attr_accessor :configuration attr_writer :connection def configure @configuration = Configuration.instance yield @configuration end def connection @connection ||= Bunny.new( Jackhammer.configuration.connection_url, Jackhammer.configuration.connection_options ).start end def channel @channel ||= connection.create_channel end def topics @topics ||= TopicManager.topics end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jackhammer-1.1.0 | lib/jackhammer.rb |
jackhammer-1.0.0 | lib/jackhammer.rb |