class KnapsackPro::Crypto::Encryptor
Attributes
test_files[R]
Public Class Methods
call(test_files)
click to toggle source
# File lib/knapsack_pro/crypto/encryptor.rb, line 6 def self.call(test_files) if KnapsackPro::Config::Env.test_files_encrypted? new(test_files).call else test_files end end
new(test_files)
click to toggle source
# File lib/knapsack_pro/crypto/encryptor.rb, line 14 def initialize(test_files) @test_files = test_files end
Public Instance Methods
call()
click to toggle source
# File lib/knapsack_pro/crypto/encryptor.rb, line 18 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