Sha256: dbe334718cff02138dac3b73469408499a11d6abd40a7fc0d28c42e3b130af17
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
# coding: utf-8 Dir[File.dirname(__FILE__) + '/transports/*.rb'].each {|file| require file } module Splash module Transports include Splash::Config def get_default_subscriber(queue) aclass = "Splash::Transports::#{get_config[:transports][:active].to_s.capitalize}::Subscriber" return Kernel.const_get(aclass)::new(queue) end def get_default_client aclass = "Splash::Transports::#{get_config[:transports][:active].to_s.capitalize}::Client" return Kernel.const_get(aclass)::new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prometheus-splash-0.1.1 | lib/splash/transports.rb |