Sha256: a6d36cacd296826204af6e8474b155501b920ac871dba3cc1a23aafbf5f34905
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
Puppet::Functions.create_function(:'deployments::generate') do dispatch :generate do param 'Hash', :data param 'String[1]', :secret end def generate(data, secret) require 'jwt' # Remove quotes to work around CDPE-3903 actual_secret = secret.gsub(/"/, '') JWT.encode(data, actual_secret) end end
Version data entries
2 entries across 2 versions & 1 rubygems