Sha256: 15734bba2f7365ad2b6d17c33f96b066d6c74320a81c4f85e044ca2899894feb

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8
# @author Sascha Manns
# @abstract Notifier Module for latex_curriculum_vitae
#
# Copyright (C) 2015-2017  Sascha Manns <Sascha.Manns@mailbox.org>
# License: GPL-3

# Dependencies

# Module for notify the user
require 'notifier'

# Module for notifying the user
module Notifier
  # Method for notifying the user
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youtube_dlhelper-2.0.4 lib/youtube_dlhelper/notifier.rb