Class: Hydra::Listener::Notifier

Inherits:
Abstract
  • Object
show all
Defined in:
lib/hydra/listener/notifier.rb

Overview

Sends a command to Notifier when the testing has finished manpages.ubuntu.com/manpages/gutsy/man1/notify-send.1.html

Instance Method Summary collapse

Methods inherited from Abstract

#file_begin, #file_end, #initialize, #testing_begin, #worker_begin, #worker_end

Constructor Details

This class inherits a constructor from Hydra::Listener::Abstract

Instance Method Details

#testing_endObject

output a finished notification



7
8
9
10
11
12
13
# File 'lib/hydra/listener/notifier.rb', line 7

def testing_end
  icon_path = File.join(
    File.dirname(__FILE__), '..', '..', '..',
    'hydra-icon-64x64.png'
  )
  `notify-send -i #{icon_path} "Hydra" "Testing Completed"`
end