diff mod_storage_mongodb/mod_storage_mongodb.lua @ 813:2469f779b3f7

mod_storage_*: Update to use module:provides().
author Waqas Hussain <waqas20@gmail.com>
date Wed, 12 Sep 2012 23:58:01 +0500
parents bf2ad6d6c778
children fd420237a5e4
line wrap: on
line diff
--- a/mod_storage_mongodb/mod_storage_mongodb.lua	Wed Sep 12 18:03:55 2012 +0200
+++ b/mod_storage_mongodb/mod_storage_mongodb.lua	Wed Sep 12 23:58:01 2012 +0500
@@ -44,7 +44,7 @@
 	end;
 end
 
-local driver = { name = "mongodb" };
+local driver = {};
 
 function driver:open(store, typ)
 	if not conn then
@@ -61,4 +61,4 @@
 	return nil, "unsupported-store";
 end
 
-module:add_item("data-driver", driver);
+module:provides("storage", driver);