Sha256: d6ff461036b48f52e553f96516168040446d2560e7d2764d46b5a3e137c21c8c
Contents?: true
Size: 1.25 KB
Versions: 27
Compression:
Stored size: 1.25 KB
Contents
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # !!! PLEASE KEEP THIS SCRIPT IDEMPOTENT !!! # ::User.current = ::User.anonymous_api_admin # Mail Notifications notifications = [ {:name => :host_errata_advisory, :description => N_('A summary of available and applicable errata for your hosts'), :mailer => 'Katello::ErrataMailer', :method => 'host_errata', :subscription_type => 'report' }, {:name => :sync_errata, :description => N_('A summary of new errata after a repository is synchronized'), :mailer => 'Katello::ErrataMailer', :method => 'sync_errata', :subscription_type => 'alert' }, {:name => :promote_errata, :description => N_('A post-promotion summary of hosts with installable errata'), :mailer => 'Katello::ErrataMailer', :method => 'promote_errata', :subscription_type => 'alert' } ] notifications.each do |notification| ::MailNotification.where(name: notification[:name]).first_or_create!(notification) end ::User.current = nil
Version data entries
27 entries across 27 versions & 1 rubygems