comparison 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
comparison
equal deleted inserted replaced
665:5dc13c816045 666:81d9c3a3a0b5
107 return record.success 107 return record.success
108 108
109 def _bakeAssets(self, ctx, out_dir): 109 def _bakeAssets(self, ctx, out_dir):
110 proc = ProcessorPipeline( 110 proc = ProcessorPipeline(
111 ctx.app, out_dir, 111 ctx.app, out_dir,
112 force=ctx.args.force) 112 force=ctx.args.force,
113 applied_config_variant=ctx.config_variant,
114 applied_config_values=ctx.config_values)
113 record = proc.run() 115 record = proc.run()
114 _merge_timers(record.timers, ctx.timers) 116 _merge_timers(record.timers, ctx.timers)
115 return record.success 117 return record.success
116 118
117 119