Sha256: bf86e77f34b8f0c87c6c160d17027190fca6b901ce181025429ff9fde2b8cc4c

Contents?: true

Size: 239 Bytes

Versions: 20

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true
require 'digest/md5'

Puppet::Parser::Functions::newfunction(:md5, :type => :rvalue, :arity => 1, :doc => "Returns a MD5 hash value from a provided string.") do |args|
      Digest::MD5.hexdigest(args[0])
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/parser/functions/md5.rb
puppet-8.3.0-x86-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.3.0-x64-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.3.0-universal-darwin lib/puppet/parser/functions/md5.rb
puppet-8.3.1 lib/puppet/parser/functions/md5.rb
puppet-8.3.1-x86-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.3.1-x64-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.3.1-universal-darwin lib/puppet/parser/functions/md5.rb
puppet-8.2.0 lib/puppet/parser/functions/md5.rb
puppet-8.2.0-x86-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.2.0-x64-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.2.0-universal-darwin lib/puppet/parser/functions/md5.rb
puppet-8.1.0 lib/puppet/parser/functions/md5.rb
puppet-8.1.0-x86-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.1.0-x64-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.1.0-universal-darwin lib/puppet/parser/functions/md5.rb
puppet-8.0.1 lib/puppet/parser/functions/md5.rb
puppet-8.0.1-x86-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.0.1-x64-mingw32 lib/puppet/parser/functions/md5.rb
puppet-8.0.1-universal-darwin lib/puppet/parser/functions/md5.rb