Class: Salemove::ProcessHandler::TerminalNotifierWrapper
- Inherits:
-
Object
- Object
- Salemove::ProcessHandler::TerminalNotifierWrapper
- Defined in:
- lib/salemove/process_handler/notifier_factory.rb
Instance Method Summary collapse
-
#initialize(process_name) ⇒ TerminalNotifierWrapper
constructor
A new instance of TerminalNotifierWrapper.
- #notify_or_ignore(error, _) ⇒ Object
Constructor Details
#initialize(process_name) ⇒ TerminalNotifierWrapper
Returns a new instance of TerminalNotifierWrapper.
50 51 52 |
# File 'lib/salemove/process_handler/notifier_factory.rb', line 50 def initialize(process_name) @process_name = process_name end |
Instance Method Details
#notify_or_ignore(error, _) ⇒ Object
54 55 56 |
# File 'lib/salemove/process_handler/notifier_factory.rb', line 54 def notify_or_ignore(error, _) TerminalNotifier.notify(error, title: "Error in #{@process_name}") end |