Class: AutotestNotification::Linux

Inherits:
Object
  • Object
show all
Defined in:
lib/autotest_notification/linux.rb

Class Method Summary collapse

Class Method Details

.notify(title, msg, img, failures = 0) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/autotest_notification/linux.rb', line 5

def notify(title, msg, img, failures=0)
  if has_notify?
    notify_send(title, msg, img)
  elsif has_zenity?
    zenity(title, msg, img)
  elsif has_kdialog?
    kdialog(title, msg, img)
  end

  talk(msg, failures)
end