Sha256: 5f029b5df89bfebc315285bf34103b7c3c23b6b394b8eb795c75f50ae593c65c

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

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.0 lib/splash/transports.rb