]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#8678) Add validate_array and validate_string functions
authorJeff McCune <jeff@puppetlabs.com>
Wed, 3 Aug 2011 22:51:27 +0000 (15:51 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Thu, 4 Aug 2011 23:05:39 +0000 (16:05 -0700)
commit7393de98955892a3f32416a65a31852d797da9a6
treea8aa7f916e6c64be66207d504a00a20d623e79c8
parent66cfee6f22e474b05dc1d6001a6e1636d8c33bf1
(#8678) Add validate_array and validate_string functions

The accounts module is making use of validate_array() and
validate_string() which do not exist int he stdlib module without this
patch.

This patch adds the two functions to the stdlib with unit tests.

Reviewed-by: Dan Bode
lib/puppet/parser/functions/validate_array.rb [new file with mode: 0644]
lib/puppet/parser/functions/validate_string.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/validate_array_spec.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/validate_string_spec.rb [new file with mode: 0644]