Sha256: 293dd7dad602fa96bc845ce8fa0387e4681e0f3156e4f76e63988b02eee8c117
Contents?: true
Size: 358 Bytes
Versions: 4
Compression:
Stored size: 358 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(&:raw_path) end.flatten end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0a2 | lib/nanoc/tasks/clean.rb |
nanoc-4.0.0a1 | lib/nanoc/tasks/clean.rb |
nanoc-3.8.0 | lib/nanoc/tasks/clean.rb |
nanoc-3.7.5 | lib/nanoc/tasks/clean.rb |