Sha256: 555de9be7879f7a38444c75dc9fe35b694879cb80cbb680ca16047028e892067
Contents?: true
Size: 704 Bytes
Versions: 77
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true require 'asciidoctor' module Avm module EacAsciidoctorBase0 module Sources class Build class File enable_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.path.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
77 entries across 77 versions & 3 rubygems