changeset 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 0095b74a3685
children 881ec9919144
files mod_couchdb/couchdb/mod_couchdb.lua mod_storage_ldap/mod_storage_ldap.lua mod_storage_mongodb/mod_storage_mongodb.lua
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mod_couchdb/couchdb/mod_couchdb.lua	Wed Sep 12 18:03:55 2012 +0200
+++ b/mod_couchdb/couchdb/mod_couchdb.lua	Wed Sep 12 23:58:01 2012 +0500
@@ -76,4 +76,4 @@
 	return instance;
 end
 
-module:add_item("data-driver", driver);
+module:provides("storage", driver);
--- a/mod_storage_ldap/mod_storage_ldap.lua	Wed Sep 12 18:03:55 2012 +0200
+++ b/mod_storage_ldap/mod_storage_ldap.lua	Wed Sep 12 23:58:01 2012 +0500
@@ -167,7 +167,7 @@
 -- Driver Definition --
 ----------------------------------------
 
-local driver = { name = "ldap" };
+local driver = {};
 
 function driver:open(store, typ)
     local adapter = adapters[store];
@@ -177,4 +177,4 @@
     end
     return nil, "unsupported-store";
 end
-module:add_item("data-driver", driver);
+module:provides("storage", driver);
--- 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);