Skip to content

Commit

Permalink
[minor] Add space in database options
Browse files Browse the repository at this point in the history
  • Loading branch information
julianduque committed Dec 22, 2013
1 parent de85d0f commit 9452c90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/jitsu/commands/databases.js
Expand Up @@ -115,7 +115,7 @@ databases.create = function (requestedDatabaseType, requestedDatabaseName, callb
}

function promptForDatabase (callback) {

var funcs = [
function getDBName(cb) {
if (database.name) {
Expand All @@ -138,15 +138,15 @@ databases.create = function (requestedDatabaseType, requestedDatabaseName, callb
}

jitsu.log.warn('Valid database types are: ' + 'couch'.magenta + ' (iriscouch), ' + 'redis'.magenta + ' (irisredis), '
+ 'mongo'.magenta + ' (mongolab), ' + 'mongohq'.magenta + ', or' + 'redistogo'.magenta);
+ 'mongo'.magenta + ' (mongolab), ' + 'mongohq'.magenta + ', or ' + 'redistogo'.magenta);
jitsu.prompt.get('database type', function (e, res) {
database.type = res['database type'] || database.type;
cb();
});
}
];


(function iterate(keys) {
var elem = funcs[--keys];

Expand All @@ -155,7 +155,7 @@ databases.create = function (requestedDatabaseType, requestedDatabaseName, callb
}

elem(function dbIterator() {
iterate(keys);
iterate(keys);
});

})(funcs.length);
Expand Down

0 comments on commit 9452c90

Please sign in to comment.