Sha256: 95cfae653374a70d397910df52c4ad9c40a49fe8615660f0a72b5f6034606994
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true require 'logger' require 'forwardable' require 'yaml' require 'bunny' require 'jackhammer/version' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jackhammer-0.2.2 | lib/jackhammer.rb |
jackhammer-0.2.1 | lib/jackhammer.rb |
jackhammer-0.2.0 | lib/jackhammer.rb |