debian-mirror-gitlab/lib/gitlab/seeder.rb
2016-06-16 23:09:34 +05:30

24 lines
346 B
Ruby

module Gitlab
class Seeder
def self.quiet
mute_mailer
SeedFu.quiet = true
yield
SeedFu.quiet = false
puts "\nOK".color(:green)
end
def self.by_user(user)
yield
end
def self.mute_mailer
code = <<-eos
def Notify.deliver_later
self
end
eos
eval(code)
end
end
end