Sha256: db79d46d7ec1efd523d69ceddb79f06c5e2d421731d41e65902865986ed7ac1f
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require 'set' require 'database_flusher/version' require 'database_flusher/null_strategy' require 'database_flusher/cleaner' require 'database_flusher/active_record/deletion_strategy' require 'database_flusher/active_record/transaction_strategy' require 'database_flusher/mongoid/deletion_strategy' module DatabaseFlusher extend self def cleaners @cleaners ||= {} end def [](name) cleaners[name] ||= DatabaseFlusher::Cleaner.new(name) end def start cleaners.values.each(&:start) end def stop cleaners.values.each(&:stop) end def clean cleaners.values.each(&:clean) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
database_flusher-0.2.0 | lib/database_flusher.rb |