Sha256: 14dc1b2026fbda6bfe082daea298231d7d9a4811f7dec8756cbe35e240d27d43

Contents?: true

Size: 435 Bytes

Versions: 14

Compression:

Stored size: 435 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.8 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.7 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.6 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.5 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.4 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.3 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.2 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.1 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.7.0 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.6.4 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.6.3 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.6.2 lib/nanoc/base/services/compiler/stages/prune.rb
nanoc-4.6.1 lib/nanoc/base/services/compiler/stages/prune.rb