Last active
July 8, 2018 18:58
-
-
Save mspclaims/5c3dce94c25b2eae6a4aa2cf7ce61943 to your computer and use it in GitHub Desktop.
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
// provided by in @Spaider (https://github.com/Spaider) | |
// in https://github.com/serverless/serverless/issues/1439#issuecomment-273482220 | |
'use strict' | |
class VerboseDeploy { | |
constructor(serverless, options) { | |
this.serverless = serverless | |
this.options = options | |
// Bind to AWS only | |
this.provider = this.serverless.getProvider('aws') | |
this.hooks = { | |
'before:deploy:initialize': this.onInitialize.bind(this) | |
} | |
} | |
onInitialize() { | |
this.provider.sdk.EventListeners.Core.on('build', (r) => { | |
console.log(`${r.operation}`) | |
console.dir(r.params) | |
}) | |
} | |
} | |
module.exports = VerboseDeploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment