Sha256: 4db46226b906cbe9b27a73ecfcb562c9257d545462cdaa64562e25e79ee57f60
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 Bytes
Contents
require 'bunny' require 'active_rabbit/version' require 'logger' module ActiveRabbit autoload :Bundle, 'active_rabbit/bundle' autoload :Configuration, 'active_rabbit/configuration' autoload :Consumer, 'active_rabbit/consumer' autoload :Loggable, 'active_rabbit/loggable' autoload :Message, 'active_rabbit/message' autoload :Runner, 'active_rabbit/runner' autoload :Util, 'active_rabbit/util' class << self attr_writer :logger def version VERSION end def logger @logger = Logger.new(STDOUT) end def configuration @default_bundle ||= Bundle.new end def load_config_directory(directory_path) configuration.load_directory(directory_path) end def temporarily_taint_configuration(bundle) raise ArgumentError, 'No block given' unless block_given? original_bundle = configuration @default_bundle = bundle yield ensure @default_bundle = original_bundle end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerabbit-0.0.1.beta1 | lib/active_rabbit.rb |