Skip to content

Instantly share code, notes, and snippets.

@ianwestcott
Created December 6, 2012 18:41
Show Gist options
  • Save ianwestcott/4226937 to your computer and use it in GitHub Desktop.
Save ianwestcott/4226937 to your computer and use it in GitHub Desktop.
CFEngine pre-commit validation hook
#!/bin/sh
#
# runs cf-promises on the promises.cf file and fails
# if they don't validate. stdout is muted but stderr
# still outputs to the shell
cf-promises -nf ./promises.cf > /dev/null
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment