class Sicily::Util::NotificationUtil
Public Class Methods
file_names(files)
click to toggle source
# File lib/sicily/util/notification_util.rb, line 20 def self.file_names(files) files.map do |file| File.basename(file) end.join(', ') end
notify_beginning(files)
click to toggle source
# File lib/sicily/util/notification_util.rb, line 8 def self.notify_beginning(files) msg = file_names(files) title = "Beginning processing #{files.size} file(s)" TerminalNotifier.notify(msg, title: title) end
notify_done(files)
click to toggle source
# File lib/sicily/util/notification_util.rb, line 14 def self.notify_done(files) msg = file_names(files) title = "Finished processing #{files.size} file(s)" TerminalNotifier.notify(msg, title: title) end