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.34.0 lib/puppet/parser/functions/digest.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.33.0 lib/puppet/parser/functions/digest.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.32.1 lib/puppet/parser/functions/digest.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.31.0 lib/puppet/parser/functions/digest.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.30.0 lib/puppet/parser/functions/digest.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/functions/digest.rb