Sha256: bd6367c0e70beb6d526b75a0dcc73666db95a2782235ed0b40777c09c642517d

Contents?: true

Size: 604 Bytes

Versions: 65

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module ForemanAnsible
  class ImportRolesAndVariablesSuccessNotification < ::UINotifications::Base
    private

    def create
      ::Notification.create!(
        :audience => Notification::AUDIENCE_USER,
        :notification_blueprint => blueprint,
        :initiator => initiator,
        :message => message,
        :subject => subject
      )
    end

    def blueprint
      name = 'Sync_roles_and_variables_successfully'
      @blueprint ||= NotificationBlueprint.unscoped.find_by(:name => name)
    end

    def message
      blueprint.message
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-15.0.1 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-15.0.0 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.2.2 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.2.1 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.7 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.2.0 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.1.1 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.1.0 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.5 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-14.0.0 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.4 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.3 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.2 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.1 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-13.0.0 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-12.0.7 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-10.4.4 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-7.1.8 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb
foreman_ansible-12.0.6 app/services/foreman_ansible/import_roles_and_variables_success_notification.rb