Sha256: da7b7297f29dcdac4d670fe3c9aff9952b4585c3a69f9e97b2faa8260684a662
Contents?: true
Size: 919 Bytes
Versions: 5
Compression:
Stored size: 919 Bytes
Contents
module Spontaneous::Output module Store autoload :Backend, 'spontaneous/output/store/backend' autoload :File, 'spontaneous/output/store/file' autoload :Moneta, 'spontaneous/output/store/moneta' autoload :Revision, 'spontaneous/output/store/revision' autoload :Store, 'spontaneous/output/store/store' autoload :Transaction, 'spontaneous/output/store/transaction' # Initializes a new store with the provided options # Uses moneta as a unified interface to except in the special case of the :File # store which needs to work in a way compatible with the use of # an frontend HTTP proxy, e.g. Nginx def self.new(backend_class, options = {}) backend = case backend_class when :File File.new(options[:root] || options[:dir]) else Moneta.new(backend_class, options) end Store.new(backend) end end end
Version data entries
5 entries across 5 versions & 1 rubygems