BigW Consortium Gitlab

Commit 8bdced42 by Stan Hu

Mute notifications in the seeder to speed GDK development

parent 98dd4927
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment