Sha256: 42da024ec0b2fc169b2d390f411cbde71ecd8ba72f0f2585d5fbd2d1a9bea63e
Contents?: true
Size: 711 Bytes
Versions: 25
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true module KnapsackPro module Crypto class Encryptor def self.call(test_files) if KnapsackPro::Config::Env.test_files_encrypted? new(test_files).call else test_files end end def initialize(test_files) @test_files = test_files end def call encrypted_test_files = [] test_files.each do |test_file| test_file_dup = test_file.dup test_file_dup['path'] = Digestor.salt_hexdigest(test_file['path']) encrypted_test_files << test_file_dup end encrypted_test_files end private attr_reader :test_files end end end
Version data entries
25 entries across 25 versions & 1 rubygems