Diff

core/moduleapi.lua @ 5496:7a0b81b5ca71

moduleapi: Add module:open_store() as a front-end to storagemanager.open()
author Matthew Wild <mwild1@gmail.com>
date Fri, 19 Apr 2013 13:29:47 +0100
parent 5434:9dd36e20c1e3
child 5498:2a67235e1d4d
line wrap: on
line diff
--- a/core/moduleapi.lua	Thu Apr 18 11:13:40 2013 +0100
+++ b/core/moduleapi.lua	Fri Apr 19 13:29:47 2013 +0100
@@ -337,4 +337,8 @@
 	return io.open(path, mode);
 end
 
+function api:open_store(name, type)
+	return storagemanager.open(self.host, name, type);
+end
+
 return api;