debian-mirror-gitlab/app/workers/gitlab_shell_one_shot_worker.rb

11 lines
217 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
class GitlabShellOneShotWorker
include Sidekiq::Worker
include Gitlab::ShellAdapter
sidekiq_options queue: :gitlab_shell, retry: false
def perform(action, *arg)
gitlab_shell.send(action, *arg)
end
end