Sha256: b38c88f2ac225d45c5c26bca1349a1798aa3f4c486648753541a1138638b0a78

Contents?: true

Size: 213 Bytes

Versions: 775

Compression:

Stored size: 213 Bytes

Contents

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

775 entries across 775 versions & 4 rubygems

Version Path
puppet-7.34.0 lib/puppet/parser/functions/sha1.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-7.33.0 lib/puppet/parser/functions/sha1.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-7.32.1 lib/puppet/parser/functions/sha1.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-7.31.0 lib/puppet/parser/functions/sha1.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/functions/sha1.rb
puppet-7.30.0 lib/puppet/parser/functions/sha1.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/functions/sha1.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/functions/sha1.rb