Skip to content

Add support for using both match and after #317

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

Closed
wants to merge 2 commits into from

Conversation

adidenko
Copy link

@adidenko adidenko commented Sep 8, 2014

This is for "file_line" provider.
Previously we were running "match" handler ignoring "after" param.
This patch enables us to use both "match" and "after" resource
parameters: if "match" is found, then we simply replace the line,
if it's not found and we have "after", then we add line after the
specified pattern. If "match" and "after" not found, then we just
append the line.

Previously we were running "match" handler ignoring "after" param.
This patch enables us to use both "match" and "after" resource
parameters: if "match" is found, then we simply replace the line,
if it's not found and we have "after", then we add lines after the
specified pattern. If "match" and "after" not found, then we just
append the line.
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.

1 participant