Sha256: 85cfee7dd0cbfcecd600b8e66c6e4bc9cafb947645b6939ace309ee30cc3b48c
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require 'firehose/version' require 'amqp' module Firehose autoload :Subscription, 'firehose/subscription' autoload :Publisher, 'firehose/publisher' autoload :Goliath, 'firehose/goliath' autoload :Rack, 'firehose/rack' autoload :CLI, 'firehose/cli' # TODO move this into a configuration or session class. # Hang on to AMQP configuration settings. def self.amqp @amqp ||= Struct.new(:connection).new(AMQP.connect) end # TODO figure out a better way to memoize AMQP connection for production runtimes, and # make it resetable for testing environment. Some sort of Firehose::Session object is probably # in order def self.reset! @amqp = nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
firehose-0.0.5 | lib/firehose.rb |