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)
|
2019-10-12 21:52:04 +05:30
|
|
|
@remote_mirror = RemoteMirror.find_by_id(remote_mirror_id)
|
2019-02-15 15:39:39 +05:30
|
|
|
@project = @remote_mirror.project
|
2019-12-21 20:55:43 +05:30
|
|
|
user = User.find(recipient_id)
|
2019-02-15 15:39:39 +05:30
|
|
|
|
2019-12-21 20:55:43 +05:30
|
|
|
mail(to: user.notification_email_for(@project.group), subject: subject('Remote mirror update failed'))
|
2019-02-15 15:39:39 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|