Sha256: 905cb82f22b5fc7f59d08975ab864570532bf02aef6c9b42018fcd95bf9c4163
Contents?: true
Size: 704 Bytes
Versions: 32
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.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
32 entries across 32 versions & 2 rubygems