Sha256: bbeedb427d6a29ca3c5cc0a37f28c5b93a68d98b34f275bf5a16ae33acadb560
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true module Nanoc module Int class Compiler module Stages class Prune < Nanoc::Core::CompilationStage def initialize(config:, reps:) @config = config @reps = reps end def run if @config[:prune][:auto_prune] Nanoc::Pruner.new(@config, @reps, exclude: prune_config_exclude).run end end private def prune_config @config[:prune] || {} end def prune_config_exclude prune_config[:exclude] || {} end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems