Sha256: 5cdfb5f430f38f78a9d8e37092a9d6a041772e462a9da8c0b8ab5a7933dc66f8

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

module Dry
  module System
    module Plugins
      # @api public
      module Notifications
        # @api private
        def self.extended(system)
          system.after(:configure, &:register_notifications)
        end

        # @api private
        def self.dependencies
          'dry/monitor/notifications'
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-system-0.12.0 lib/dry/system/plugins/notifications.rb
dry-system-0.11.0 lib/dry/system/plugins/notifications.rb
dry-system-0.10.1 lib/dry/system/plugins/notifications.rb
dry-system-0.10.0 lib/dry/system/plugins/notifications.rb
dry-system-0.9.2 lib/dry/system/plugins/notifications.rb
dry-system-0.9.1 lib/dry/system/plugins/notifications.rb