files/gitlab-cookbooks/gitlab/libraries/certificate_helper.rb
# If the number of files between the two directories is different
# something got added so trigger the run
If the number of files between the two directories is different
something got added so trigger the run
If the number of files between the two directories is different something got added so trigger the run
def new_certificate_added?
    return true unless File.exists?(@directory_hash_file)
    stored_hash = File.read(@directory_hash_file)
    trusted_certs_dir_hash != stored_hash
  end
def new_certificate_added? return true unless File . exists? ( @directory_hash_file ) stored_hash = File . read ( @directory_hash_file ) trusted_certs_dir_hash != stored_hash end
If the number of files between the two directories is different
something got added so trigger the run
If the number of files between the two directories is different something got added so trigger the run