2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-11 12:27:26 -05:00
|
|
|
class GitlabShellWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2013-03-21 15:01:14 -04:00
|
|
|
include Gitlab::ShellAdapter
|
2013-01-28 10:22:45 -05:00
|
|
|
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :source_code_management
|
2019-10-30 11:14:17 -04:00
|
|
|
latency_sensitive_worker!
|
2019-10-18 07:11:44 -04:00
|
|
|
|
2013-01-28 14:02:10 -05:00
|
|
|
def perform(action, *arg)
|
2019-11-18 13:06:53 -05:00
|
|
|
Gitlab::GitalyClient::NamespaceService.allow do
|
|
|
|
gitlab_shell.__send__(action, *arg) # rubocop:disable GitlabSecurity/PublicSend
|
|
|
|
end
|
2013-01-28 10:22:45 -05:00
|
|
|
end
|
|
|
|
end
|