Skip to content
Permalink
Browse files

[fix] Deprecate Redistogo provider

  • Loading branch information...
julianduque committed Jun 2, 2014
1 parent b5650b0 commit c3c8c38729ffabf66026026d11d707f386bde4b6
Showing with 6 additions and 9 deletions.
  1. +6 −9 lib/jitsu/commands/databases.js
@@ -21,7 +21,7 @@ databases.usage = [
'Valid database types are: ' + 'couch'.magenta + ', ' + 'redis'.magenta + ', or ' + 'mongo'.magenta
];

databases.available = ['couch', 'redis', 'mongo', 'mongohq', 'redistogo'];
databases.available = ['couch', 'redis', 'mongo', 'mongohq'];

//
// Micro aliasing for databases command
@@ -36,8 +36,7 @@ databases.aliases = {
couch : ['c', 'couchdb', 'iriscouch'],
redis : ['r', 'irisredis'],
mongo : ['m', 'mongodb', 'mongolab'],
mongohq: [],
redistogo: []
mongohq: []
};

//
@@ -138,7 +137,7 @@ 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) or ' + 'mongohq'.magenta);
jitsu.prompt.get('database type', function (e, res) {
database.type = res['database type'] || database.type;
cb();
@@ -171,8 +170,7 @@ databases.create.usage = [
'jitsu databases create couch <database name>',
'jitsu databases create mongo <database name>',
'jitsu databases create redis <database name>',
'jitsu databases create mongohq <database name>',
'jitsu databases create redistogo <database name>',
'jitsu databases create mongohq <database name>'
];

databases.get = function (databaseName, callback) {
@@ -335,7 +333,7 @@ var printDatabase = function (database) {
case 'redis':
var port = database.metadata.port,
password = database.metadata.password,
server = (database.metadata.label) ? database.metadata.label.split('-')[0] + '.redistogo.com' : database.metadata.host;
server = database.metadata.host;

printBase(database);
jitsu.log.data('Connection host: ' + server.grey);
@@ -427,10 +425,9 @@ var printDbHelp = function (database) {
break;

case 'redis':
case 'redistogo':
var port = database.metadata.port,
password = database.metadata.password,
server = (database.metadata.label) ? database.metadata.label.split('-')[0] + '.redistogo.com' : database.metadata.host;
server = database.metadata.host;

[
'',

0 comments on commit c3c8c38

Please sign in to comment.
You can’t perform that action at this time.