Class: Salemove::ProcessHandler::NotifierFactory
- Inherits:
-
Object
- Object
- Salemove::ProcessHandler::NotifierFactory
- Defined in:
- lib/salemove/process_handler/notifier_factory.rb
Class Method Summary collapse
Class Method Details
.get_notifier(process_name, conf) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/salemove/process_handler/notifier_factory.rb', line 4 def self.get_notifier(process_name, conf) return nil unless conf case conf[:type] when 'airbrake' AirbrakeNotifier.new when 'sentry' SentryNotifier.new when 'growl' GrowlNotifier.new(process_name) when 'terminal-notifier' TerminalNotifierWrapper.new(process_name) end end |