Mercurial > piecrust2
comparison piecrust/publishing/shell.py @ 623:42da89d8bd51
publish: Change the `shell` config setting name for the command to run.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 08 Feb 2016 21:05:26 -0800 |
parents | 8f9c0bdb3724 |
children | 13e8b50a2113 |
comparison
equal
deleted
inserted
replaced
622:5d8e0c8cdb5f | 623:42da89d8bd51 |
---|---|
4 | 4 |
5 class ShellCommandPublisher(ShellCommandPublisherBase): | 5 class ShellCommandPublisher(ShellCommandPublisherBase): |
6 PUBLISHER_NAME = 'shell' | 6 PUBLISHER_NAME = 'shell' |
7 | 7 |
8 def _getCommandArgs(self, ctx): | 8 def _getCommandArgs(self, ctx): |
9 target_cmd = self.getConfigValue('cmd') | 9 target_cmd = self.getConfigValue('command') |
10 if not target_cmd: | 10 if not target_cmd: |
11 raise Exception("No command specified for publish target: %s" % | 11 raise Exception("No command specified for publish target: %s" % |
12 self.target) | 12 self.target) |
13 args = shlex.split(target_cmd) | 13 args = shlex.split(target_cmd) |
14 return args | 14 return args |