Sha256: 2a27f2e95b484d431d2af2761f97d5a32afa9c7a5205364d82ec0e89f452f462

Contents?: true

Size: 711 Bytes

Versions: 73

Compression:

Stored size: 711 Bytes

Contents

blueprints = [
  {
    group: N_('Jobs'),
    name: 'rex_job_succeeded',
    message: N_("A job '%{subject}' has finished successfully"),
    level: 'success',
    actions:
    {
      links:
      [
        path_method: :job_invocation_path,
        title: N_('Job Details'),
      ],
    },
  },
  {
    group: N_('Jobs'),
      name: 'rex_job_failed',
      message: N_("A job '%{subject}' has failed"),
      level: 'error',
      actions:
          {
            links:
                [
                  path_method: :job_invocation_path,
                    title: N_('Job Details'),
                ],
          },
  },
]

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

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.7 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-15.0.0 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.1.4 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.1.3 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.1.2 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.1.1 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.1.0 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.0.2 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.0.1 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.6 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-14.0.0 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.5 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.4 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.3 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.2 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-12.0.7 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.1 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.2.0 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-10.1.3 db/seeds.d/50-notification_blueprints.rb
foreman_remote_execution-13.0.0 db/seeds.d/50-notification_blueprints.rb