Sha256: 91e0a157bc7b015e18f95413c0d20a1ef22df3e7116fd989d25017e5380159fa
Contents?: true
Size: 624 Bytes
Versions: 19
Compression:
Stored size: 624 Bytes
Contents
module Distil class PageProduct < Product extension "html" def filename File.join(target.project.output_folder, "index.html") end def write_output output_folder= target.project.output_folder mode= target.project.mode files.each { |f| if (RELEASE_MODE==mode) FileUtils.cp f, output_folder else product_path= File.join(output_folder, File.basename(f)) FileUtils.rm product_path if File.exists? product_path File.symlink f.relative_to_folder(output_folder), product_path end } end end end
Version data entries
19 entries across 19 versions & 1 rubygems