mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
class Deploy {
|
|
constructor(serverless) {
|
|
this.serverless = serverless;
|
|
|
|
this.commands = {
|
|
deploy: {
|
|
usage: 'Deploy Service.',
|
|
lifecycleEvents: [
|
|
'initialize',
|
|
'setupProviderConfiguration',
|
|
'createDeploymentArtifacts',
|
|
'compileFunctions',
|
|
'compileEvents',
|
|
'deploy',
|
|
],
|
|
options: {
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
shortcut: 's',
|
|
},
|
|
region: {
|
|
usage: 'Region of the service',
|
|
shortcut: 'r',
|
|
},
|
|
},
|
|
commands: {
|
|
function: {
|
|
usage: 'Deploys a single function from the service',
|
|
lifecycleEvents: [
|
|
'deploy',
|
|
],
|
|
options: {
|
|
function: {
|
|
usage: 'Name of the function',
|
|
shortcut: 'f',
|
|
required: true,
|
|
},
|
|
stage: {
|
|
usage: 'Stage of the function',
|
|
shortcut: 's',
|
|
},
|
|
region: {
|
|
usage: 'Region of the function',
|
|
shortcut: 'r',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Deploy;
|