gitlab-org--gitlab-foss/app/workers/gitlab_shell_worker.rb

16 lines
371 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-02-11 12:27:26 -05:00
class GitlabShellWorker
include ApplicationWorker
include Gitlab::ShellAdapter
feature_category :source_code_management
latency_sensitive_worker!
2013-01-28 14:02:10 -05:00
def perform(action, *arg)
Gitlab::GitalyClient::NamespaceService.allow do
gitlab_shell.__send__(action, *arg) # rubocop:disable GitlabSecurity/PublicSend
end
end
end