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.

Methods

Attributes

site  [R]  @return [Nanoc::Site] The site this pruner belongs to

Public Class methods

@param [Nanoc::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.

Public Instance methods

Prunes all output files not managed by nanoc.

@return [void]

Protected Instance methods

[Validate]