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

gitlab_shell_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57e64570c09c462deabf306e432cbe88d98c88be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class GitlabShellWorker
  include ApplicationWorker
  include Gitlab::ShellAdapter

  feature_category :source_code_management
  latency_sensitive_worker!

  def perform(action, *arg)
    Gitlab::GitalyClient::NamespaceService.allow do
      gitlab_shell.__send__(action, *arg) # rubocop:disable GitlabSecurity/PublicSend
    end
  end
end