filestore 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/filestore/multitenant_store.rb +4 -4
- metadata +1 -1
@@ -55,8 +55,8 @@ module FileStore
|
|
55
55
|
begin
|
56
56
|
path = File.join(@rootPath, id)
|
57
57
|
FileUtils.mkdir path if not File.directory?(path)
|
58
|
-
mm = MemoryMetaManager.new
|
59
|
-
sfs = SimpleFileStore.new
|
58
|
+
mm = MemoryMetaManager.new File.join(path, "meta.yaml"), self.logger
|
59
|
+
sfs = SimpleFileStore.new mm, path, self.logger
|
60
60
|
|
61
61
|
@stores[id] = sfs
|
62
62
|
|
@@ -177,8 +177,8 @@ module FileStore
|
|
177
177
|
begin
|
178
178
|
if File.directory?(e)
|
179
179
|
tenant = File.basename(e)
|
180
|
-
mm = MemoryMetaManager.new
|
181
|
-
sfs = SimpleFileStore.new
|
180
|
+
mm = MemoryMetaManager.new File.join(e, MemoryMetaManager::FILE), self.logger
|
181
|
+
sfs = SimpleFileStore.new mm, e, self.logger
|
182
182
|
|
183
183
|
stores[tenant] = sfs
|
184
184
|
end
|