Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.625 kB
require 'rubygems'
require 'curator/migration'
require 'curator/migrator'
require 'curator/model'
require 'curator/repository'
require 'curator/configuration'
require 'curator/railtie' if defined?(Rails)
module Curator
class << self
attr_reader :config
end
def self.configure(data_store, &block)
configuration_path = "curator/#{data_store.to_s}/configuration"
require configuration_path
require "curator/#{data_store}/data_store"
@config = configuration_path.camelize.constantize.new
yield(@config) if block_given?
end
def self.data_store
@data_store ||= config.data_store
end
end
Jump to Line
Something went wrong with that request. Please try again.