summaryrefslogtreecommitdiff
path: root/app/mailers/emails/remote_mirrors.rb
blob: f3938a052b04eee0ac4b2558e81252ce6207bdc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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

      mail(to: recipient(recipient_id, @project.group), subject: subject('Remote mirror update failed'))
    end
  end
end