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.25.0 lib/puppet/parser/functions/digest.rb
puppet-7.25.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.25.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.25.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.24.0 lib/puppet/parser/functions/digest.rb
puppet-7.24.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.24.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.24.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.23.0 lib/puppet/parser/functions/digest.rb
puppet-7.23.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.23.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.23.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.22.0 lib/puppet/parser/functions/digest.rb
puppet-7.22.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.22.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.22.0-universal-darwin lib/puppet/parser/functions/digest.rb
puppet-7.21.0 lib/puppet/parser/functions/digest.rb
puppet-7.21.0-x86-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.21.0-x64-mingw32 lib/puppet/parser/functions/digest.rb
puppet-7.21.0-universal-darwin lib/puppet/parser/functions/digest.rb