Sha256: 4e1f2be2850c8e772d4f7f4295041f9c847551531220558b4cc5bf240d7afd97

Contents?: true

Size: 535 Bytes

Versions: 189

Compression:

Stored size: 535 Bytes

Contents

module Katello
  module UINotifications
    module ContentView
      class AutoPublishFailure < ::UINotifications::Base
        private

        def create
          Notification.create!(
            subject: subject,
            initiator: initiator,
            audience: ::Notification::AUDIENCE_ADMIN,
            notification_blueprint: blueprint
          )
        end

        def blueprint
          @blueprint ||= NotificationBlueprint.find_by(name: 'content_view_auto_publish_error')
        end
      end
    end
  end
end

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
katello-3.12.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.11.2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.12.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.12.0.rc2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.1.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.12.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.11.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.11.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.11.0.rc2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.11.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.0.rc1.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.9.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.10.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.9.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.8.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.9.0.rc2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.9.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb