module DatabaseFlusher
Constants
- VERSION
Public Instance Methods
[](name)
click to toggle source
# File lib/database_flusher.rb, line 19 def [](name) cleaners[name] ||= DatabaseFlusher::Cleaner.new(name) end
clean()
click to toggle source
# File lib/database_flusher.rb, line 31 def clean cleaners.values.each(&:clean) end
cleaners()
click to toggle source
# File lib/database_flusher.rb, line 15 def cleaners @cleaners ||= {} end
cleaning() { || ... }
click to toggle source
# File lib/database_flusher.rb, line 35 def cleaning start yield ensure clean end
start()
click to toggle source
# File lib/database_flusher.rb, line 23 def start cleaners.values.each(&:start) end
stop()
click to toggle source
# File lib/database_flusher.rb, line 27 def stop cleaners.values.each(&:stop) end