forked from serverless/serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.js
56 lines (53 loc) · 1.27 KB
/
deploy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
class Deploy {
constructor(serverless) {
this.serverless = serverless;
this.commands = {
deploy: {
usage: 'Deploy Service.',
lifecycleEvents: [
'initializeResources',
'createProviderStacks',
'createDeploymentPackage',
'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;