Module: LatexCurriculumVitae::Letter

Defined in:
lib/latex_curriculum_vitae/letter.rb

Overview

Module for creating the motivational letter

Class Method Summary collapse

Class Method Details

.create_letter(tmp_dir, name_of_letter) ⇒ Object

Method for creating a pdf from tex



27
28
29
30
31
32
33
# File 'lib/latex_curriculum_vitae/letter.rb', line 27

def self.create_letter(tmp_dir, name_of_letter)
  puts 'Compiling motivational letter'.color(:yellow)
  system("pdflatex #{name_of_letter}.tex")
  puts 'Done compiling motivational letter'.color(:green)
  system("cp #{name_of_letter}.pdf #{tmp_dir}")
  puts 'Copied motivational letter to tmpdir'.color(:green)
end