summaryrefslogtreecommitdiff
path: root/app/workers/gitlab_shell_worker.rb
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