blob: 10cc55cfee1f228d5569ad4bfa786d32a6a026f7 (
plain)
1
2
3
4
5
|
Puppet::Parser::Functions::newfunction(:sha1, :type => :rvalue, :doc => "Returns a SHA1 hash value from a provided string.") do |args|
require 'sha1'
Digest::SHA1.hexdigest(args[0])
end
|