aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/sha1.rb
blob: b5aa8134e3dfb15387f1cfb2b79d430296482852 (plain)
1
2
3
4
5
6
7
8
9
# return the sha1 hash
require 'digest/sha1'

module Puppet::Parser::Functions
	newfunction(:sha1, :type => :rvalue) do |args|
		Digest::SHA1.hexdigest(args[0])
	end
end