Sha256: 30af6074120415fee99bdce918dadc446a5a8632f871bf14a63b05634460d181
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module Nanoc::Int # @api private class CompilerLoader def load(site, action_provider: nil) action_sequence_store = Nanoc::Int::ActionSequenceStore.new(site: site) dependency_store = Nanoc::Int::DependencyStore.new(site.items, site.layouts, site.config, site: site) objects = site.items.to_a + site.layouts.to_a + site.code_snippets + [site.config] checksum_store = Nanoc::Int::ChecksumStore.new(site: site, objects: objects) action_provider ||= Nanoc::Int::ActionProvider.named(:rule_dsl).for(site) outdatedness_store = Nanoc::Int::OutdatednessStore.new(site: site) compiled_content_cache = Nanoc::Int::CompiledContentCache.new( site: site, items: site.items, ) params = { compiled_content_cache: compiled_content_cache, checksum_store: checksum_store, action_sequence_store: action_sequence_store, dependency_store: dependency_store, action_provider: action_provider, outdatedness_store: outdatedness_store, } Nanoc::Int::Compiler.new(site, params) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.8.12 | lib/nanoc/base/services/compiler_loader.rb |
nanoc-4.8.11 | lib/nanoc/base/services/compiler_loader.rb |
nanoc-4.8.10 | lib/nanoc/base/services/compiler_loader.rb |