Mute notifications in the seeder to speed GDK development

This commit is contained in:
Stan Hu 2018-01-26 15:25:05 -08:00
parent 98dd492766
commit 8bdced4288

View file

@ -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