Module: Dry::System::Plugins::Notifications
- Defined in:
- lib/dry/system/plugins/notifications.rb
Class Method Summary collapse
- .dependencies ⇒ Object private
- .extended(system) ⇒ Object private
Instance Method Summary collapse
- #register_notifications ⇒ Object private
Class Method Details
.dependencies ⇒ 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.
14 15 16 |
# File 'lib/dry/system/plugins/notifications.rb', line 14 def self.dependencies {"dry-monitor": "dry/monitor"} 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.
9 10 11 |
# File 'lib/dry/system/plugins/notifications.rb', line 9 def self.extended(system) system.after(:configure, &:register_notifications) end |
Instance Method Details
#register_notifications ⇒ 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.
19 20 21 22 23 |
# 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 |