module Dry::System::Plugins::Notifications

@api public

Public Class Methods

dependencies() click to toggle source

@api private

# File lib/dry/system/plugins/notifications.rb, line 14
def self.dependencies
  {'dry-monitor': "dry/monitor/notifications"}
end
extended(system) click to toggle source

@api private

# File lib/dry/system/plugins/notifications.rb, line 9
def self.extended(system)
  system.after(:configure, &:register_notifications)
end

Public Instance Methods

register_notifications() click to toggle source

@api private

# File lib/dry/system/plugins/notifications.rb, line 19
def register_notifications
  return self if registered?(:notifications)

  register(:notifications, Monitor::Notifications.new(config.name))
end