2013-02-11 18:27:26 +01:00
|
|
|
class GitlabShellWorker
|
2013-01-28 16:22:45 +01:00
|
|
|
include Sidekiq::Worker
|
2013-03-21 20:01:14 +01:00
|
|
|
include Gitlab::ShellAdapter
|
2013-01-28 16:22:45 +01:00
|
|
|
|
2013-02-11 18:16:59 +01:00
|
|
|
sidekiq_options queue: :gitlab_shell
|
2013-01-28 16:22:45 +01:00
|
|
|
|
2013-01-28 20:02:10 +01:00
|
|
|
def perform(action, *arg)
|
2013-02-11 18:16:59 +01:00
|
|
|
gitlab_shell.send(action, *arg)
|
2013-01-28 16:22:45 +01:00
|
|
|
end
|
|
|
|
end
|