Sha256: b527640fd2c297c70d0859dbb634520e3321e1ee966c08bc355a532e825ef8a0
Contents?: true
Size: 1 KB
Versions: 10
Compression:
Stored size: 1 KB
Contents
module Distil class CacheManifestProduct < Product content_type "manifest" variants [RELEASE_VARIANT] def build FileUtils.mkdir_p(File.dirname(output_path)) File.open(output_path, "w") { |output| output.puts "CACHE MANIFEST" output.puts "# generated @ #{Time.new.rfc2822}" output.puts output.puts "# products" project.products.each { |p| next if (DEBUG_VARIANT == p.variant || self==p) if p.is_a?(HtmlProduct) p.files.each { |f| output.puts File.basename(f) } else output.puts project.relative_output_path_for(p.minimised_filename) end } output.puts output.puts "# assets" project.assets.each { |a| output.puts project.relative_output_path_for(a) } # Added a NETWORK catch all section output.puts output.puts "NETWORK:" output.puts "*" } end end end
Version data entries
10 entries across 10 versions & 1 rubygems