diff options
author | Stan Hu <stanhu@gmail.com> | 2018-01-27 02:25:05 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-01-27 02:25:05 +0300 |
commit | 8bdced4288cb3c7eaefbb8486bfc4af73d90b21e (patch) | |
tree | 0accec773623ffb59b3efaec626aa886bebd4b1b /lib/gitlab/seeder.rb | |
parent | 98dd492766e3455d75fcab47a6abfa100d5c859c (diff) |
Mute notifications in the seeder to speed GDK development
Diffstat (limited to 'lib/gitlab/seeder.rb')
-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 |