mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
32 lines
632 B
JavaScript
32 lines
632 B
JavaScript
'use strict';
|
|
|
|
class Deploy {
|
|
constructor(serverless) {
|
|
this.serverless = serverless;
|
|
|
|
this.commands = {
|
|
deploy: {
|
|
usage: 'Deploy Service.',
|
|
lifecycleEvents: [
|
|
'initializeResources',
|
|
'createProviderStacks',
|
|
'compileFunctions',
|
|
'compileEvents',
|
|
'deploy',
|
|
],
|
|
options: {
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
required: true,
|
|
},
|
|
region: {
|
|
usage: 'Region of the service',
|
|
required: true,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Deploy; |