Mercurial > piecrust2
changeset 624:b45fb2137a07
publish: Add option to change the source for the `rsync` publisher.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 08 Feb 2016 21:29:35 -0800 |
parents | 42da89d8bd51 |
children | 7f95c5e91a31 |
files | piecrust/publishing/rsync.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/publishing/rsync.py Mon Feb 08 21:05:26 2016 -0800 +++ b/piecrust/publishing/rsync.py Mon Feb 08 21:29:35 2016 -0800 @@ -7,8 +7,10 @@ def _getCommandArgs(self, ctx): if self.has_url_config: + orig = ctx.bake_out_dir dest = self.parsed_url.netloc + self.parsed_url.path else: + orig = self.getConfigValue('source', ctx.bake_our_dir) dest = self.getConfigValue('destination') rsync_options = None @@ -18,6 +20,6 @@ rsync_options = ['-avc', '--delete'] args = ['rsync'] + rsync_options - args += [ctx.bake_out_dir, dest] + args += [orig, dest] return args