Sha256: 7ac4fa820eaab57dd73f70e02416b141cbf1b654efce3a68ecd549204b7300fd
Contents?: true
Size: 392 Bytes
Versions: 31
Compression:
Stored size: 392 Bytes
Contents
# encoding: utf-8 module Nanoc::Tasks class Clean def initialize(site) @site = site end def run filenames.each do |filename| FileUtils.rm_f filename unless filename.nil? end end private def filenames @site.items.map do |item| item.reps.map do |rep| rep.raw_path end end.flatten end end end
Version data entries
31 entries across 31 versions & 1 rubygems