gitlab-org--gitlab-foss/app/workers/create_gpg_signature_worker.rb
2017-07-27 15:46:04 +02:00

16 lines
300 B
Ruby

class CreateGpgSignatureWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
def perform(commit_sha, project_id)
project = Project.find_by(id: project_id)
return unless project
commit = project.commit(commit_sha)
return unless commit
commit.signature
end
end