rename getServices to getServiceIds
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
exports = module.exports = {
|
||||
getServices,
|
||||
getServiceIds,
|
||||
getService,
|
||||
getServiceConfig,
|
||||
configureService,
|
||||
@@ -347,19 +347,19 @@ function containerStatus(containerName, tokenEnvName, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
function getServices(callback) {
|
||||
function getServiceIds(callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
let services = Object.keys(SERVICES);
|
||||
let serviceIds = Object.keys(SERVICES);
|
||||
|
||||
appdb.getAll(function (error, apps) {
|
||||
if (error) return callback(error);
|
||||
|
||||
for (let app of apps) {
|
||||
if (app.manifest.addons && app.manifest.addons['redis']) services.push(`redis:${app.id}`);
|
||||
if (app.manifest.addons && app.manifest.addons['redis']) serviceIds.push(`redis:${app.id}`);
|
||||
}
|
||||
|
||||
callback(null, services);
|
||||
callback(null, serviceIds);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user