Sha256: de6c1a5bb7c9faaa987e6c7d9808172a400b05885c06a8d0c9e3f43f09b19e4b

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8
# @author Sascha Manns
# @abstract Notifier Module for latex_curriculum_vitae
#
# Copyright (C) 2015  Sascha Manns <samannsml@directbox.com>
# License: MIT

# Dependencies

# Module for notify the user
require 'notifier'

# main module
module LatexCurriculumVitae
  # Method for notifying the user
  module Notify
    def self.run(jobtitle)
      home = Dir.home
      prefix = "#{home}/.rvm/rubies/default"
      datadir = "#{prefix}/share"
      img = "#{datadir}/latex_curriculum_vitae/Pictures/arbeitsagentur.png"
      Notifier.notify(
          :image => "#{img}",
          :title => "Your Job Application",
          :message => "Your Job Application #{jobtitle} was created now."
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
latex_curriculum_vitae-1.1.3 lib/latex_curriculum_vitae/notifier.rb