2018-12-05 10:22:52 -05:00
|
|
|
# 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-02-15 12:56:13 -05:00
|
|
|
mail(to: recipient(recipient_id, @project.group), subject: subject('Remote mirror update failed'))
|
2018-12-05 10:22:52 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|