Module: Autotestforphp::Notification
- Defined in:
- lib/autotestforphp/notification.rb,
lib/autotestforphp/notification/mac.rb,
lib/autotestforphp/notification/linux.rb,
lib/autotestforphp/notification/windows.rb
Defined Under Namespace
Modules: Linux, Mac, Windows Classes: Config
Class Method Summary collapse
Class Method Details
.notify(title, msg, img = Config.success_image) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/autotestforphp/notification.rb', line 24 def notify(title, msg, img = Config.success_image) case RUBY_PLATFORM when /linux/ Linux.notify(title, msg, img) when /darwin/ Mac.notify(title, msg, img) when /mswin/ Windows.notify(title, msg, img) end end |