added a strlength function to get the length of a string into puppet

This commit is contained in:
mh 2009-04-30 13:40:43 +00:00 committed by Micah Anderson
parent 49b127b80a
commit 61d767b561

View file

@ -0,0 +1,6 @@
module Puppet::Parser::Functions
newfunction(:strlength, :type => :rvalue) do |args|
argv[0].to_s.length
end
end