module Notifier

Module for notifying the user

Public Class Methods

run() click to toggle source

Method for notifying the user

# File lib/youtube_dlhelper/notifier.rb, line 17
def self.run
  home = Dir.home
  prefix = "#{home}/.rvm/rubies/default"
  datadir = "#{prefix}/share"
  img = "#{datadir}/youtube_dlhelper/100px-youtube_dlhelper.png"
  Notifier.notify(
      :image => "#{img}",
      :title => 'Your YouTube video',
      :message => 'Your transcoding is finished.'
  )
end