comparison piecrust/publishing/rsync.py @ 758:6abb436fea5b

publish: Make publisher more powerful and better exposed on the command line. * Make the `chef publish` command have one sub-command per publish target. * Add custom argument parsing per publisher to have strong extra arguments available per publish target. * Make publish targets a first class citizen of the `PieCrust` app class.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 25 Jun 2016 17:03:29 -0700
parents b45fb2137a07
children f6a13dba38d6
comparison
equal deleted inserted replaced
757:7147b06670fd 758:6abb436fea5b
6 PUBLISHER_SCHEME = 'rsync' 6 PUBLISHER_SCHEME = 'rsync'
7 7
8 def _getCommandArgs(self, ctx): 8 def _getCommandArgs(self, ctx):
9 if self.has_url_config: 9 if self.has_url_config:
10 orig = ctx.bake_out_dir 10 orig = ctx.bake_out_dir
11 dest = self.parsed_url.netloc + self.parsed_url.path 11 dest = self.config.netloc + self.config.path
12 else: 12 else:
13 orig = self.getConfigValue('source', ctx.bake_our_dir) 13 orig = self.getConfigValue('source', ctx.bake_our_dir)
14 dest = self.getConfigValue('destination') 14 dest = self.getConfigValue('destination')
15 15
16 rsync_options = None 16 rsync_options = None