lib/ruote/storage/fs_storage.rb in ruote-2.1.3 vs lib/ruote/storage/fs_storage.rb in ruote-2.1.4

- old
+ new

@@ -70,12 +70,27 @@ def get_many (type, key=nil, opts={}) @cloche.get_many(type, key, opts) end + def ids (type) + + @cloche.ids(type) + end + def purge! FileUtils.rm_rf(@cloche.dir) + end + + # No need for that here (FsStorage adds type on the fly). + # + def add_type (type) + end + + def purge_type! (type) + + @cloche.purge_type!(type) end def dump (type) s = "=== #{type} ===\n"