9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/hubeye/notification/finder.rb', line 9
def self.find_notify
if RUBY_PLATFORM =~ /mswin/
return
elsif RUBY_PLATFORM =~ /linux/
libnotify = system('locate libnotify-bin > /dev/null')
if libnotify
require_relative "gnomenotify"
return "libnotify"
elsif LibCheck.autotest_notification
require_relative "growl"
return "growl"
end
elsif RUBY_PLATFORM =~ /darwin/i and LibCheck.autotest_notification
require_relative "growl"
return "growl"
end
end
|