Sha256: 21e1032b581451795ae7b1eda5be2980e7ae8180a662ef862bff96c61cf16e4d
Contents?: true
Size: 712 Bytes
Versions: 4
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require 'asciidoctor' module Avm module EacAsciidoctorBase0 module Sources class Build class File enable_console_speaker common_constructor :build, :subpath def run infov 'Building', subpath ::Asciidoctor.convert_file source_path.to_path, to_file: target_path.to_path, safe: :unsafe, mkdirs: true end def source_path build.project.root.join(subpath) end def target_path build.target_directory.join(subpath).basename_sub('.*') { |b| "#{b}.html" } end end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems