Class | Nanoc::Extra::Pruner |
In: |
lib/nanoc/extra/pruner.rb
|
Parent: | Object |
Responsible for finding and deleting files in the site’s output directory that are not managed by nanoc.
site | [R] | @return [Nanoc::Site] The site this pruner belongs to |
@param [Nanoc::Site] site The site for which a pruner is created
@option params [Boolean] :dry_run (false) true if the files to be deleted
should only be printed instead of actually deleted, false if the files should actually be deleted.
@param [String] filename The filename to check
@return [Boolean] true if the given file is excluded, false otherwise