Module: Emails::PagesDomains

Included in:
Notify
Defined in:
app/mailers/emails/pages_domains.rb

Instance Method Summary collapse

Instance Method Details

#pages_domain_auto_ssl_failed_email(domain, recipient) ⇒ Object


45
46
47
48
49
50
51
52
53
54
# File 'app/mailers/emails/pages_domains.rb', line 45

def pages_domain_auto_ssl_failed_email(domain, recipient)
  @domain = domain
  @project = domain.project

  subject_text = _("ACTION REQUIRED: Something went wrong while obtaining the Let's Encrypt certificate for GitLab Pages domain '%{domain}'") % { domain: domain.domain }
  mail(
    to: recipient.notification_email_for(@project.group),
    subject: subject(subject_text)
  )
end

#pages_domain_disabled_email(domain, recipient) ⇒ Object


15
16
17
18
19
20
21
22
23
# File 'app/mailers/emails/pages_domains.rb', line 15

def pages_domain_disabled_email(domain, recipient)
  @domain = domain
  @project = domain.project

  mail(
    to: recipient.notification_email_for(@project.group),
    subject: subject("GitLab Pages domain '#{domain.domain}' has been disabled")
  )
end

#pages_domain_enabled_email(domain, recipient) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'app/mailers/emails/pages_domains.rb', line 5

def pages_domain_enabled_email(domain, recipient)
  @domain = domain
  @project = domain.project

  mail(
    to: recipient.notification_email_for(@project.group),
    subject: subject("GitLab Pages domain '#{domain.domain}' has been enabled")
  )
end

#pages_domain_verification_failed_email(domain, recipient) ⇒ Object


35
36
37
38
39
40
41
42
43
# File 'app/mailers/emails/pages_domains.rb', line 35

def pages_domain_verification_failed_email(domain, recipient)
  @domain = domain
  @project = domain.project

  mail(
    to: recipient.notification_email_for(@project.group),
    subject: subject("ACTION REQUIRED: Verification failed for GitLab Pages domain '#{domain.domain}'")
  )
end

#pages_domain_verification_succeeded_email(domain, recipient) ⇒ Object


25
26
27
28
29
30
31
32
33
# File 'app/mailers/emails/pages_domains.rb', line 25

def pages_domain_verification_succeeded_email(domain, recipient)
  @domain = domain
  @project = domain.project

  mail(
    to: recipient.notification_email_for(@project.group),
    subject: subject("Verification succeeded for GitLab Pages domain '#{domain.domain}'")
  )
end