debian-mirror-gitlab/app/mailers/emails/remote_mirrors.rb

13 lines
382 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
module Emails
module RemoteMirrors
def remote_mirror_update_failed_email(remote_mirror_id, recipient_id)
@remote_mirror = RemoteMirrorFinder.new(id: remote_mirror_id).execute
@project = @remote_mirror.project
2019-09-04 21:01:54 +05:30
mail(to: recipient(recipient_id, @project.group), subject: subject('Remote mirror update failed'))
2019-02-15 15:39:39 +05:30
end
end
end