use proper name for gitlabshell worker
This commit is contained in:
parent
dd8d0a659d
commit
ea0cb39d63
3 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ class KeyObserver < ActiveRecord::Observer
|
||||||
include Gitolited
|
include Gitolited
|
||||||
|
|
||||||
def after_save(key)
|
def after_save(key)
|
||||||
GitoliteWorker.perform_async(
|
GitlabShellWorker.perform_async(
|
||||||
:add_key,
|
:add_key,
|
||||||
key.shell_id,
|
key.shell_id,
|
||||||
key.key
|
key.key
|
||||||
|
@ -10,7 +10,7 @@ class KeyObserver < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_destroy(key)
|
def after_destroy(key)
|
||||||
GitoliteWorker.perform_async(
|
GitlabShellWorker.perform_async(
|
||||||
:remove_key,
|
:remove_key,
|
||||||
key.shell_id,
|
key.shell_id,
|
||||||
key.key,
|
key.key,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class ProjectObserver < ActiveRecord::Observer
|
class ProjectObserver < ActiveRecord::Observer
|
||||||
def after_create(project)
|
def after_create(project)
|
||||||
GitoliteWorker.perform_async(
|
GitlabShellWorker.perform_async(
|
||||||
:add_repository,
|
:add_repository,
|
||||||
project.path_with_namespace
|
project.path_with_namespace
|
||||||
)
|
)
|
||||||
|
@ -13,7 +13,7 @@ class ProjectObserver < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_destroy(project)
|
def after_destroy(project)
|
||||||
GitoliteWorker.perform_async(
|
GitlabShellWorker.perform_async(
|
||||||
:remove_repository,
|
:remove_repository,
|
||||||
project.path_with_namespace
|
project.path_with_namespace
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class GitoliteWorker
|
class GitlabShellWorker
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
include Gitolited
|
include Gitolited
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue