lib/database_flusher.rb in database_flusher-0.3.1 vs lib/database_flusher.rb in database_flusher-0.3.2
- old
+ new
@@ -29,6 +29,13 @@
end
def clean
cleaners.values.each(&:clean)
end
+
+ def cleaning
+ start
+ yield
+ ensure
+ clean
+ end
end