Class: Salemove::ProcessHandler::GrowlNotifier

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

Instance Method Summary collapse

Constructor Details

#initialize(process_name) ⇒ GrowlNotifier

Returns a new instance of GrowlNotifier.



33
34
35
# File 'lib/salemove/process_handler/notifier_factory.rb', line 33

def initialize(process_name)
  @process_name = process_name
end

Instance Method Details

#notify_or_ignore(error, _) ⇒ Object



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

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