Sha256: ae8779d11a957ebe8b648523a6efe71cafd20f1332f990375125f971fb13c39c
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
require 'sys/uname' case Sys::Uname.sysname when 'Darwin' require 'growl' when 'Linux' require 'libnotify' end module RSpactor module Notifier def self.notify(message, title, image_path) case Sys::Uname.sysname when 'Darwin' Growl.notify message, :title => title, :icon => image_path, :name => "RSpactor" when 'Linux' Libnotify.show :body => message, :summary => title, :icon_path => image_path end end end end
Version data entries
4 entries across 4 versions & 1 rubygems