Sha256: 5661810fc243d96f5479c25ce2b7e82e784d1fc1254faa1faaeac6d27bc23523

Contents?: true

Size: 641 Bytes

Versions: 18

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Int::Compiler::Stages
  class BuildReps < Nanoc::Int::Compiler::Stage
    def initialize(site:, action_provider:)
      @site = site
      @action_provider = action_provider
    end

    def run
      reps = Nanoc::Int::ItemRepRepo.new

      builder = Nanoc::Int::ItemRepBuilder.new(
        @site, @action_provider, reps
      )

      action_sequences = builder.run

      @site.layouts.each do |layout|
        action_sequences[layout] = @action_provider.action_sequence_for(layout)
      end

      {
        reps: reps,
        action_sequences: action_sequences,
      }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.11.0 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.10.4 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.10.3 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.10.2 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.10.1 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.10.0 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.9 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.8 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.7 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.6 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.5 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.4 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.3 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.2 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.1 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.9.0 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.8.19 lib/nanoc/base/services/compiler/stages/build_reps.rb
nanoc-4.8.18 lib/nanoc/base/services/compiler/stages/build_reps.rb