Sha256: 3814da5b760a7c05a2d40510414b19333aa8fbcb5dc5345560005df194b35c8a

Contents?: true

Size: 386 Bytes

Versions: 28

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../puppet/util/checksums'
Puppet::Parser::Functions.newfunction(:digest, :type => :rvalue, :arity => 1, :doc => "Returns a hash value from a provided string using the digest_algorithm setting from the Puppet config file.") do |args|
  algo = Puppet[:digest_algorithm]
  Puppet::Util::Checksums.method(algo.intern).call args[0]
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/parser/functions/digest.rb
puppet-8.10.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.10.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.10.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-8.9.0 lib/puppet/parser/functions/digest.rb
puppet-8.9.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.9.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.9.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-8.8.1 lib/puppet/parser/functions/digest.rb
puppet-8.8.1-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.8.1-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.8.1-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-8.7.0 lib/puppet/parser/functions/digest.rb
puppet-8.7.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.7.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.7.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-8.6.0 lib/puppet/parser/functions/digest.rb
puppet-8.6.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.6.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-8.6.0-universal-darwin lib/puppet/parser/functions/digest.rb