Added function base64 to encode strings using base64 encoding.
This commit is contained in:
parent
d2af9fcb04
commit
8c69213384
1 changed files with 8 additions and 0 deletions
8
util/lib/puppet/parser/functions/base64.rb
Normal file
8
util/lib/puppet/parser/functions/base64.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
require 'base64'
|
||||
|
||||
module Puppet::Parser::Functions
|
||||
newfunction(:base64, :type => :rvalue) do |args|
|
||||
Base64.encode64(args[0])
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue