Skip to content

Commit 4d34495

Browse files
authored
updated code to use stack name from provider section if provided (#21)
1 parent 40ad7ba commit 4d34495

File tree

10 files changed

+4110
-458
lines changed

10 files changed

+4110
-458
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const beforeDeploy = function beforeDeploy(serverless) {
2+
console.log('i am in before deploy');
3+
};
4+
5+
module.exports = {
6+
beforeDeploy
7+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const helper = require('./helper');
2+
3+
/**
4+
* The class that will be used as serverless plugin.
5+
*/
6+
class BeforeDeploy {
7+
constructor(serverless, options) {
8+
this.hooks = {
9+
'before:deploy:deploy': () => helper.beforeDeploy(serverless)
10+
}
11+
}
12+
}
13+
14+
module.exports = BeforeDeploy
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const updateConfig = async function updateConfig(serverless) {
2+
console.log('i am in config');
3+
};
4+
5+
module.exports = {
6+
updateConfig
7+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const helper = require('./helper');
2+
3+
/**
4+
* The class that will be used as serverless plugin.
5+
*/
6+
class UpdateConfig {
7+
constructor(serverless, options) {
8+
this.serverless = serverless
9+
this.options = options
10+
this.hooks = {
11+
'config:credentials:config': () => helper.updateConfig(serverless)
12+
}
13+
}
14+
}
15+
16+
module.exports = UpdateConfig

0 commit comments

Comments
 (0)