serverless/lib/plugins/awsRemove/lib/validateInput.js
Philipp Muens 60e7be805d Rename "awsRemoveResources" to "awsRemove"
This way it's less verbose and sticks to the overall used naming convention.
2016-06-10 10:40:37 +02:00

14 lines
285 B
JavaScript

'use strict';
const BbPromise = require('bluebird');
module.exports = {
validateInput() {
if (!this.serverless.config.servicePath) {
throw new this.serverless.classes.Error('This command can only be run inside a service.');
}
return BbPromise.resolve();
},
};