Commit ea0cb39d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

use proper name for gitlabshell worker

parent dd8d0a65
No related merge requests found
......@@ -2,7 +2,7 @@ class KeyObserver < ActiveRecord::Observer
include Gitolited
def after_save(key)
GitoliteWorker.perform_async(
GitlabShellWorker.perform_async(
:add_key,
key.shell_id,
key.key
......@@ -10,7 +10,7 @@ class KeyObserver < ActiveRecord::Observer
end
def after_destroy(key)
GitoliteWorker.perform_async(
GitlabShellWorker.perform_async(
:remove_key,
key.shell_id,
key.key,
......
class ProjectObserver < ActiveRecord::Observer
def after_create(project)
GitoliteWorker.perform_async(
GitlabShellWorker.perform_async(
:add_repository,
project.path_with_namespace
)
......@@ -13,7 +13,7 @@ class ProjectObserver < ActiveRecord::Observer
end
def after_destroy(project)
GitoliteWorker.perform_async(
GitlabShellWorker.perform_async(
:remove_repository,
project.path_with_namespace
)
......
class GitoliteWorker
class GitlabShellWorker
include Sidekiq::Worker
include Gitolited
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment