Sha256: c7bb3c28d20982af630d55624e618db155db2bd512d66beeff51c8eec89afde3
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 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(config: site.config) dependency_store = Nanoc::Int::DependencyStore.new(site.items, site.layouts, site.config) objects = site.items.to_a + site.layouts.to_a + site.code_snippets + [site.config] checksum_store = Nanoc::Int::ChecksumStore.new(config: site.config, objects: objects) action_provider ||= Nanoc::Int::ActionProvider.named(site.config.action_provider).for(site) outdatedness_store = Nanoc::Int::OutdatednessStore.new(config: site.config) compiled_content_cache = Nanoc::Int::CompiledContentCache.new( config: site.config, 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.9.3 | lib/nanoc/base/services/compiler_loader.rb |
nanoc-4.9.2 | lib/nanoc/base/services/compiler_loader.rb |
nanoc-4.9.1 | lib/nanoc/base/services/compiler_loader.rb |