Mercurial > piecrust2
diff piecrust/commands/builtin/baking.py @ 666:81d9c3a3a0b5
internal: Get rid of the whole "sub cache" business.
* Compute cache keys up front, so the cache directory is only chosen once.
* Buffer up config variants to apply before loading the config. Makes it
possible to cache variant-resulting configs, too.
* Make a factory class to reuse the logic that creates the `PieCrust` object
correctly for multi-process workers and such.
* Add a test.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 03 Mar 2016 08:22:41 -0800 |
parents | 466bbddd121e |
children | 61d606fbc313 |
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py Thu Mar 03 08:19:28 2016 -0800 +++ b/piecrust/commands/builtin/baking.py Thu Mar 03 08:22:41 2016 -0800 @@ -109,7 +109,9 @@ def _bakeAssets(self, ctx, out_dir): proc = ProcessorPipeline( ctx.app, out_dir, - force=ctx.args.force) + force=ctx.args.force, + applied_config_variant=ctx.config_variant, + applied_config_values=ctx.config_values) record = proc.run() _merge_timers(record.timers, ctx.timers) return record.success