Welcome to mirror list, hosted at ThFree Co, Russian Federation.

remote_mirrors.rb « emails « mailers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 791ab7103b43a4c099fe302591142eafcf806741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Emails
  module RemoteMirrors
    def remote_mirror_update_failed_email(remote_mirror_id, recipient_id)
      @remote_mirror = RemoteMirror.find_by_id(remote_mirror_id)
      @project = @remote_mirror.project
      user = User.find(recipient_id)

      mail_with_locale(to: user.notification_email_for(@project.group), subject: subject('Remote mirror update failed'))
    end
  end
end