Module: Dry::System::Plugins::Notifications

Defined in:
lib/dry/system/plugins/notifications.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.dependenciesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


12
13
14
# File 'lib/dry/system/plugins/notifications.rb', line 12

def self.dependencies
  'dry/monitor/notifications'
end

.extended(system) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


7
8
9
# File 'lib/dry/system/plugins/notifications.rb', line 7

def self.extended(system)
  system.after(:configure, &:register_notifications)
end

Instance Method Details

#register_notificationsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


17
18
19
20
# File 'lib/dry/system/plugins/notifications.rb', line 17

def register_notifications
  return self if key?(:notifications)
  register(:notifications, Monitor::Notifications.new(config.name))
end