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.11.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.11.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.10.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.9.2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.10.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.10.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.4 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.9.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.3 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.9.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.7.6 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.9.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.9.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.1 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.7.5 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.0 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.0.rc2 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.7.4 app/services/katello/ui_notifications/abstract_notification.rb
katello-4.8.0.rc1 app/services/katello/ui_notifications/abstract_notification.rb