Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_gpg_signature_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f34dff2d6567b63be786b77a6287b63a3afb5ad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateGpgSignatureWorker
  include Sidekiq::Worker
  include DedicatedSidekiqQueue

  def perform(commit_sha, project_id)
    project = Project.find_by(id: project_id)
    return unless project

    # This calculates and caches the signature in the database
    Gitlab::Gpg::Commit.new(project, commit_sha).signature
  end
end