Mercurial > piecrust2
comparison piecrust/commands/builtin/publishing.py @ 885:13e8b50a2113
publish: Fix publishers API and add a simple "copy" publisher.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 20 Jun 2017 21:12:35 -0700 |
parents | 58ae026b4c31 |
children | d709429f02eb |
comparison
equal
deleted
inserted
replaced
884:18b3e2acd069 | 885:13e8b50a2113 |
---|---|
53 ctx.parser.parse_args(['publish', '--help']) | 53 ctx.parser.parse_args(['publish', '--help']) |
54 return | 54 return |
55 ctx.args.sub_func(ctx) | 55 ctx.args.sub_func(ctx) |
56 | 56 |
57 def _doPublish(self, ctx): | 57 def _doPublish(self, ctx): |
58 from piecrust.publishing.publisher import Publisher | 58 from piecrust.publishing.base import PublishingManager |
59 | 59 |
60 pub = Publisher(ctx.app) | 60 pub = PublishingManager(ctx.appfactory, ctx.app) |
61 pub.run( | 61 pub.run( |
62 ctx.args.target, | 62 ctx.args.target, |
63 preview=ctx.args.preview, | 63 preview=ctx.args.preview, |
64 extra_args=ctx.args, | 64 extra_args=ctx.args, |
65 log_file=ctx.args.log_publisher, | 65 log_file=ctx.args.log_publisher) |
66 applied_config_variant=ctx.config_variant, | |
67 applied_config_values=ctx.config_values) | |
68 | 66 |