]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add validate_bool() function to stdlib
authorJeff McCune <jeff@puppetlabs.com>
Fri, 3 Jun 2011 18:39:45 +0000 (11:39 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Fri, 3 Jun 2011 18:39:45 +0000 (11:39 -0700)
commitb9f1bb6a63c5c06ce5b4e147dbca4ef505f02a25
tree8513eb4b095facfd6f6489052bb9d5749b325ca1
parent46533ae4281bb58065a8f068c1334e5525deca1f
Add validate_bool() function to stdlib

This function aborts catalog compilation if any of the passed
values are not true or false.  Note, this catches the string
values of true and false correct and will abort catalog
compilation if they are not boolean values.

Paired-with: Dan Bode <dan@puppetlabs.com>
lib/puppet/parser/functions/validate_bool.rb [new file with mode: 0644]