comparison piecrust/commands/builtin/baking.py @ 466:456db44dcc53

bake: Pass the config variants and values from the CLI to the baker. TODO: add support for that for the processor pipeline.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 11 Jul 2015 23:51:02 -0700
parents 04abc97dd3b6
children c7ac7dc2fe73
comparison
equal deleted inserted replaced
465:b6e797463798 466:456db44dcc53
96 ctx.app.config.set('baker/workers', ctx.args.workers) 96 ctx.app.config.set('baker/workers', ctx.args.workers)
97 if ctx.args.batch_size > 0: 97 if ctx.args.batch_size > 0:
98 ctx.app.config.set('baker/batch_size', ctx.args.batch_size) 98 ctx.app.config.set('baker/batch_size', ctx.args.batch_size)
99 baker = Baker( 99 baker = Baker(
100 ctx.app, out_dir, 100 ctx.app, out_dir,
101 force=ctx.args.force) 101 force=ctx.args.force,
102 applied_config_variant=ctx.config_variant,
103 applied_config_values=ctx.config_values)
102 record = baker.bake() 104 record = baker.bake()
103 _merge_timers(record.timers, ctx.timers) 105 _merge_timers(record.timers, ctx.timers)
104 return record.success 106 return record.success
105 107
106 def _bakeAssets(self, ctx, out_dir): 108 def _bakeAssets(self, ctx, out_dir):