Sha256: b10078201c10ac97633a891a848756ef0b167772f7925da07769a8d9b9465559
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'chamber/keys/base' module Chamber module Keys class Encryption < Chamber::Keys::Base NAMESPACE_PATTERN = / \A # Beginning of Filename \.chamber # Initial Chamber Prefix \. # Pre-Namespace Dot (\w+) # Namespace \.pub\.pem # Extension \z # End of Filename /x.freeze private def environment_variable_from_path(path) [ 'CHAMBER', namespace_from_path(path), 'PUBLIC_KEY', ]. compact. join('_') end def key_filename_extension '.pub.pem' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chamber-2.13.1 | lib/chamber/keys/encryption.rb |
chamber-2.13.0 | lib/chamber/keys/encryption.rb |