Sha256: 265b93c3aecd819b977bc5746d2f7a5925f61f1df704a466d895548be440e40e
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
# coding: utf-8 Dir[File.dirname(__FILE__) + '/backends/*.rb'].each {|file| require file } module Splash module Backends include Splash::Config def get_backend(store) aclass = "Splash::Backends::#{get_config[:backends][:stores][store][:type].to_s.capitalize}" return Kernel.const_get(aclass)::new(store) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prometheus-splash-0.1.1 | lib/splash/backends.rb |