debian-mirror-gitlab/lib/gitlab/seeder.rb

25 lines
330 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Gitlab
class Seeder
def self.quiet
mute_mailer
SeedFu.quiet = true
yield
SeedFu.quiet = false
puts "\nOK".green
end
def self.by_user(user)
yield
end
def self.mute_mailer
code = <<-eos
def Notify.delay
self
end
eos
eval(code)
end
end
end