diff --git a/app/observers/key_observer.rb b/app/observers/key_observer.rb index 4146216d82f16b96e96bc8640de6050905611165..664cbdfd234776d9c7c0212395e166059c725a50 100644 --- a/app/observers/key_observer.rb +++ b/app/observers/key_observer.rb @@ -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, diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb index cc2a0224b722d2a9a59f5687fac11cac8b82327c..4b1f8295dc2189a208a7df6bbe3356c5a0198aa7 100644 --- a/app/observers/project_observer.rb +++ b/app/observers/project_observer.rb @@ -1,6 +1,6 @@ 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 ) diff --git a/app/workers/gitlab_shell_worker.rb b/app/workers/gitlab_shell_worker.rb index 0b8a54971113930ebebb37d55b15f8fa90233682..0a921b1bd449adf198990095c86a59859f11b925 100644 --- a/app/workers/gitlab_shell_worker.rb +++ b/app/workers/gitlab_shell_worker.rb @@ -1,4 +1,4 @@ -class GitoliteWorker +class GitlabShellWorker include Sidekiq::Worker include Gitolited