-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated code to use stack name from provider section if provided
- Loading branch information
rahul tulsian
committed
Jun 24, 2020
1 parent
40ad7ba
commit 452f7e7
Showing
10 changed files
with
4,110 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const beforeDeploy = function beforeDeploy(serverless) { | ||
console.log('i am in before deploy'); | ||
}; | ||
|
||
module.exports = { | ||
beforeDeploy | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const helper = require('./helper'); | ||
|
||
/** | ||
* The class that will be used as serverless plugin. | ||
*/ | ||
class BeforeDeploy { | ||
constructor(serverless, options) { | ||
this.hooks = { | ||
'before:deploy:deploy': () => helper.beforeDeploy(serverless) | ||
} | ||
} | ||
} | ||
|
||
module.exports = BeforeDeploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const updateConfig = async function updateConfig(serverless) { | ||
console.log('i am in config'); | ||
}; | ||
|
||
module.exports = { | ||
updateConfig | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const helper = require('./helper'); | ||
|
||
/** | ||
* The class that will be used as serverless plugin. | ||
*/ | ||
class UpdateConfig { | ||
constructor(serverless, options) { | ||
this.serverless = serverless | ||
this.options = options | ||
this.hooks = { | ||
'config:credentials:config': () => helper.updateConfig(serverless) | ||
} | ||
} | ||
} | ||
|
||
module.exports = UpdateConfig |
Oops, something went wrong.