Sha256: 1c66577cdebcf09f14fcce66e68c43664e38846220d2d63985446dac96088135
Contents?: true
Size: 466 Bytes
Versions: 23
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module Nanoc::Int::Compiler::Stages class Prune 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
Version data entries
23 entries across 23 versions & 1 rubygems