Sha256: 8412a96f5349b9b7753b12e4e1f44002debe6a6982eb02e60c00a8821f42c27a
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
module CodeKindly module Utils class OS class << self def notify (message) require "open3" stdin, stdout, stderr = Open3.popen3("which terminal-notifier") tn_path = stdout.gets if tn_path.present? Kernel.system("#{tn_path.chomp} -message \"#{message}\" -sound Submarine") end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems