-
Notifications
You must be signed in to change notification settings - Fork 303
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
Support running a validation command on the destination file. #243
Support running a validation command on the destination file. #243
Conversation
This would be a great feature. However, it needs unit tests and really should have acceptance tests as well. |
and it probably won't work :( |
@igalic Why not? The aggregiate file generated by the script is copied into place with a file resource. |
aaah. sorry, i thought that was for the fragments ignore me. |
@jhoblitt, Are these the tests you're looking for? |
@jmkeyes Aye! I'll give it a try as soon as I have the chance. |
Support running a validation command on the destination file.
Thanks for the contribution @jmkeyes ! |
@antaflos: ^ is this what you wanted? |
This patch allows a user to pass an optional
validate_cmd
parameter to aconcat
resource, which in turn will run a command to validate the output of the file before the module replaces it. It follows the same semantics as thevalidate_cmd
parameter to thefile
resource.Example: