Sha256: 9c80d15a71666195d739479e9866fa7f660eff480ac0ba49ff723f3a0e425fe0

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

# Copyright (C) 2015-2019 Sascha Manns <Sascha.Manns@outlook.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Dependencies
require 'rainbow/ext/string'

# main module
module LatexCurriculumVitae
  # Cover module
  module Cover
    # Create cover method
    # @param [String] name_of_cover Name of the cover file
    def self.create_cover(name_of_cover, tmp_dir)
      puts 'Creating cover'.color(:yellow)
      system("pdflatex #{name_of_cover}.tex")
      system("cp #{name_of_cover}.pdf #{tmp_dir}/#{name_of_cover}.pdf")
      puts 'Creating cover done'.color(:green)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
latex_curriculum_vitae-2.1.4 lib/latex_curriculum_vitae/cover.rb