Class: Salemove::ProcessHandler::TerminalNotifierWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/salemove/process_handler/notifier_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(process_name) ⇒ TerminalNotifierWrapper

Returns a new instance of TerminalNotifierWrapper.



38
39
40
# File 'lib/salemove/process_handler/notifier_factory.rb', line 38

def initialize(process_name)
  @process_name = process_name
end

Instance Method Details

#notify_or_ignore(error, _) ⇒ Object



42
43
44
# File 'lib/salemove/process_handler/notifier_factory.rb', line 42

def notify_or_ignore(error, _)
  TerminalNotifier.notify(error, title: "Error in #{@process_name}")
end