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