diff options
author | Rémy Coutable <remy@rymai.me> | 2018-01-29 14:26:13 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-29 14:26:13 +0300 |
commit | cb7a2938d644a2a5f922392a88adc896748d3baa (patch) | |
tree | 1f1374044497fe2f121fcef8b3d8c18783052ea0 /lib | |
parent | 70a7164e4562e0614bee4291022493f5d0f979b8 (diff) | |
parent | 8bdced4288cb3c7eaefbb8486bfc4af73d90b21e (diff) |
Merge branch 'sh-mute-notifications-seeder' into 'master'
Mute notifications in the seeder to speed GDK development
See merge request gitlab-org/gitlab-ce!16747
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/seeder.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index 94a481a0f2e..98f005cb61b 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -5,9 +5,15 @@ module DeliverNever end end +module MuteNotifications + def new_note(note) + end +end + module Gitlab class Seeder def self.quiet + mute_notifications mute_mailer SeedFu.quiet = true @@ -18,6 +24,10 @@ module Gitlab puts "\nOK".color(:green) end + def self.mute_notifications + NotificationService.prepend(MuteNotifications) + end + def self.mute_mailer ActionMailer::MessageDelivery.prepend(DeliverNever) end |