Sha256: 97e3f3b32241ff36b238e78cb5a42d5799a90ea2e243500abc130cf6c2256337

Contents?: true

Size: 386 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

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