Sha256: dc3ff625509c6b2ba6c7451a3fe1e2ec94cda149737cb3953649c31500feab10

Contents?: true

Size: 936 Bytes

Versions: 12

Compression:

Stored size: 936 Bytes

Contents

# frozen_string_literal: true

blueprints = [
  {
    :group => N_('Jobs'),
    :name => 'insights_remediation_successful',
    :message => N_('Insights remediation on %{hosts_count}' \
                   ' host(s) has finished successfully'),
    :level => 'success',
    :actions => {
      :links => [
        :path_method => :job_invocation_path,
        :title => N_('Job Details')
      ]
    }
  },
  {
    :group => N_('Roles'),
    :name => 'Sync_roles_and_variables_successfully',
    :message => N_('Import roles and variables has finished successfully'),
    :level => 'success',
    :actions => {
      :links => [
        :path_method => :ansible_roles_path,
        :title => N_('Roles')
      ]
    }
  },
  {
    :group => N_('Roles'),
    :name => 'Sync_roles_and_variables_failed',
    :message => 'DYNAMIC',
    :level => 'error'
  }

]
blueprints.each { |blueprint| UINotifications::Seed.new(blueprint).configure }

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_ansible-7.0.4 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-7.0.3 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-7.0.2 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-7.0.1 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-7.0.0 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.3.4 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.3.3 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.3.2 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.3.1 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.4.1 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.4.0 db/seeds.d/90_notification_blueprints.rb
foreman_ansible-6.3.0 db/seeds.d/90_notification_blueprints.rb