puppetlabs/puppetlabs-stdlib — pull request #114 by raphink (2012-12-06 12:15:50+00:00)
Title: Add validate_augeas command

This PR adds a new `validate_augeas` function, which takes a string and an Augeas lens, and validates the string against the Augeas lens. Example:

validate_cmd("root ALL=(ALL) ALL\n", "Sudoers.lns")

Like all validate_* functions, it fails compilation if the check fails. It also takes an optional 3rd argument to specify a nicer message.