Sha256: 8fafd9836c70001218285d27ce8af26a0c6ed92bf5d3ab713f57b3fb5c16d60e

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
prometheus-splash-0.1.0 lib/splash/backends.rb
prometheus-splash-0.0.3 lib/splash/backends.rb