Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit plugin to specific stages #56

Merged
merged 5 commits into from
Aug 18, 2020
Merged

Conversation

karopolopoulos
Copy link
Contributor

Fixes #55

@CLAassistant
Copy link

CLAassistant commented Aug 13, 2020

CLA assistant check
All committers have signed the CLA.

@karopolopoulos karopolopoulos changed the title include plugin for specific stages limit plugin to specific stages Aug 13, 2020
@karopolopoulos
Copy link
Contributor Author

One issue I have with the way I did things was the fact that each hook needs to now run the shouldSkipPlugin() function.
Looking for a way instead to just unbind all the hooks before loading.

May move the running of this function to the constructor

@karopolopoulos
Copy link
Contributor Author

Also, I got the versioning wrong

Copy link
Contributor

@kolanos kolanos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolanos kolanos requested a review from mrickard August 14, 2020 01:14
@@ -1,6 +1,6 @@
{
"name": "serverless-newrelic-lambda-layers",
"version": "0.1.18",
"version": "0.2.18",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change doesn't break API backwards compatibility. So could just be 0.1.19.

@mrickard
Copy link
Member

LGTM; I'd be happy to approve when the versioning's resolved.

@kolanos
Copy link
Contributor

kolanos commented Aug 18, 2020

Going to merge this and revise version in subsequent commit.

@kolanos kolanos merged commit 335de26 into newrelic:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to include/exclude layer for specific stages
4 participants