Sha256: b9a945f04def0e38ef7412707307359dd060073c3626e584381ba045c7c82247

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

# this is a basic notification service which uses a filesystem folder to handle notifications

module DispatchRider
  module NotificationServices
    class FileSystem < Base
      def notifier_builder
        Notifier
      end

      def channel_registrar_builder
        DispatchRider::Registrars::FileSystemChannel
      end

      def channel(name)
        notifier.channel(fetch(name))
      end
    end
  end
end

require 'dispatch-rider/notification_services/file_system/channel'
require 'dispatch-rider/notification_services/file_system/notifier'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/dispatch-rider/notification_services/file_system.rb