Add success console.log messages for en/disabling of usage tracking

This commit is contained in:
Philipp Muens 2016-07-14 16:04:28 +02:00
parent a6bedbf793
commit 29db4f00a0

View File

@ -38,9 +38,11 @@ class Tracking {
if (this.options.enabled === 'yes') {
fse.removeSync(path.join(serverlessPath, trackingFileName));
this.serverless.cli.log('Tracking successfully enabled');
} else if (this.options.enabled === 'no') {
fs.writeFileSync(path.join(serverlessPath, trackingFileName),
'Keep this file to enable tracking');
this.serverless.cli.log('Tracking successfully disabled');
}
}
}