Added function base64 to encode strings using base64 encoding.

This commit is contained in:
Timo Mkinen 2013-03-28 01:27:52 +02:00
parent d2af9fcb04
commit 8c69213384

View file

@ -0,0 +1,8 @@
require 'base64'
module Puppet::Parser::Functions
newfunction(:base64, :type => :rvalue) do |args|
Base64.encode64(args[0])
end
end