lib/spara/spara_disk.rb in spara-0.0.1 vs lib/spara/spara_disk.rb in spara-0.0.2
- old
+ new
@@ -38,6 +38,12 @@
db[key] = @store[key]
db
end
end
end
+
+ def clean!
+ @store.transaction do
+ @store.roots.each { |key| @store.delete(key) }
+ end
+ end
end