mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
14 lines
285 B
JavaScript
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();
|
|
},
|
|
};
|