Sha256: 0f6ac4a65607d648f2779cb3b0ae4575cfb4fda945f798cb91d73336bd716b0f

Contents?: true

Size: 589 Bytes

Versions: 191

Compression:

Stored size: 589 Bytes

Contents

module Katello
  module UINotifications
    class AbstractNotification < ::UINotifications::Base
      protected

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

      def audience
        ::Notification::AUDIENCE_SUBJECT
      end

      def actions
        []
      end

      def blueprint
        fail(Foreman::Exception, "must define blueprint in #{self.class} successors")
      end
    end
  end
end

Version data entries

191 entries across 191 versions & 1 rubygems

Version Path
katello-4.14.2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.15.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.15.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.15.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.0.rc3 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.0.rc1.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.14.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.13.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.13.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.12.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.13.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.12.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.12.0.rc3 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.12.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.12.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.11.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.11.0 app/services/katello/ui_notifications/abstract_notification.rb