Sha256: 6c6d3f5210dc59a7a04abeb52fe3e1f1faea6b3d991c8ca33275ff1b1e83e0ed

Contents?: true

Size: 356 Bytes

Versions: 120

Compression:

Stored size: 356 Bytes

Contents

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

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.11.0 lib/puppet/parser/functions/digest.rb
puppet-7.11.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.11.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.11.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.10.0 lib/puppet/parser/functions/digest.rb
puppet-7.10.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.10.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.10.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.9.0 lib/puppet/parser/functions/digest.rb
puppet-7.9.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.9.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.9.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.8.0 lib/puppet/parser/functions/digest.rb
puppet-7.8.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.8.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.8.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.7.0 lib/puppet/parser/functions/digest.rb
puppet-7.7.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.7.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.7.0-universal-darwin lib/puppet/parser/functions/digest.rb