Sha256: 3f1fe8af2eda47f7dc3ed2321c183b0f065f0e3dfcd4f17c571d2f3d14429ba3
Contents?: true
Size: 653 Bytes
Versions: 5
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems