Mercurial > piecrust2
view piecrust/publishing/shell.py @ 828:bca06fc064c0
Use assetor provided by page source when paginating
| author | Ben Artin <ben@artins.org> |
|---|---|
| date | Sun, 01 Jan 2017 19:32:19 -0500 |
| parents | 42da89d8bd51 |
| children | 13e8b50a2113 |
line wrap: on
line source
import shlex from piecrust.publishing.base import ShellCommandPublisherBase class ShellCommandPublisher(ShellCommandPublisherBase): PUBLISHER_NAME = 'shell' def _getCommandArgs(self, ctx): target_cmd = self.getConfigValue('command') if not target_cmd: raise Exception("No command specified for publish target: %s" % self.target) args = shlex.split(target_cmd) return args
