Sha256: 3c5e2a7768b9b6e9c70b135f0c6707cdcd888456f227291a86744c311e73f5c0

Contents?: true

Size: 239 Bytes

Versions: 28

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true

require 'digest/sha1'

Puppet::Parser::Functions.newfunction(:sha1, :type => :rvalue, :arity => 1, :doc => "Returns a SHA1 hash value from a provided string.") do |args|
  Digest::SHA1.hexdigest(args[0])
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/parser/functions/sha1.rb
puppet-8.10.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.10.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.10.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-8.9.0 lib/puppet/parser/functions/sha1.rb
puppet-8.9.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.9.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.9.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-8.8.1 lib/puppet/parser/functions/sha1.rb
puppet-8.8.1-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.8.1-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.8.1-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-8.7.0 lib/puppet/parser/functions/sha1.rb
puppet-8.7.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.7.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.7.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-8.6.0 lib/puppet/parser/functions/sha1.rb
puppet-8.6.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.6.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-8.6.0-universal-darwin lib/puppet/parser/functions/sha1.rb