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

Version Path
distil-0.13.6 lib/distil/product/page-product.rb
distil-0.13.5 lib/distil/product/page-product.rb
distil-0.13.4 lib/distil/product/page-product.rb
distil-0.13.3 lib/distil/product/page-product.rb
distil-0.13.2 lib/distil/product/page-product.rb
distil-0.13.1 lib/distil/product/page-product.rb
distil-0.13.0 lib/distil/product/page-product.rb
distil-0.12.6 lib/distil/product/page-product.rb
distil-0.12.4 lib/distil/product/page-product.rb
distil-0.12.3 lib/distil/product/page-product.rb
distil-0.12.2 lib/distil/product/page-product.rb
distil-0.12.1 lib/distil/product/page-product.rb
distil-0.12.0 lib/distil/product/page-product.rb
distil-0.11.8 lib/distil/product/page-product.rb
distil-0.11.6 lib/distil/product/page-product.rb
distil-0.11.5 lib/distil/product/page-product.rb
distil-0.11.4 lib/distil/product/page-product.rb
distil-0.11.3 lib/distil/product/page-product.rb
distil-0.11.1 lib/distil/product/page-product.rb