Use logger

This commit is contained in:
Aya Morisawa
2016-12-29 17:50:57 +09:00
parent d55bedc02f
commit dc21a819d6
2 changed files with 6 additions and 7 deletions

View File

@ -6,7 +6,6 @@ export default function(): void {
checkDependency('npm', 'npm -v', x => x.match(/^(.*)\r?\n$/)[1]);
checkDependency('MongoDB', 'mongo --version', x => x.match(/^MongoDB shell version: (.*)\r?\n$/)[1]);
checkDependency('Redis', 'redis-server --version', x => x.match(/v=([0-9\.]*)/)[1]);
log('Info', 'Successfully checked external dependencies');
}
function checkDependency(serviceName: string, command: string, transform: (x: string) => string): void {