Browse files

add script to dump alpha test users

  • Loading branch information...
1 parent ffaa748 commit d78c99c1decddac3db2a960090ab29b53caca0af @zaach zaach committed Dec 18, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 scripts/alpha_dump.js
View
16 scripts/alpha_dump.js
@@ -0,0 +1,16 @@
+var couchbase = require('couchbase');
+
+var options = {
+ 'username': 'Administrator',
+ 'password': process.env.DB_PASSWORD || 'password',
+ 'hosts': ['localhost:8091'],
+ 'bucket': 'default'
+};
+
+couchbase.connect(options, function(err, bucket) {
+ bucket.get('alpha_users', function (err, doc) {
+ console.log('Alpha User Emails\n-----------------');
+ console.log(doc.emails.join('\n'));
+ process.exit();
+ });
+});

0 comments on commit d78c99c

Please sign in to comment.