Mercurial > piecrust2
comparison piecrust/plugins/base.py @ 1114:8af2ea1f5c34
tasks: Add new `tasks` command and infrastructure, with `mention` task.
* The new command lets `chef` run tasks from a queue.
* The webmention endpoint now adds a mention task.
* Moved mention handling code to a task runner.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 22 Feb 2018 22:12:45 -0800 |
parents | 2e5c5d33d62c |
children |
comparison
equal
deleted
inserted
replaced
1113:29c51b981c17 | 1114:8af2ea1f5c34 |
---|---|
40 | 40 |
41 def getPipelines(self): | 41 def getPipelines(self): |
42 return [] | 42 return [] |
43 | 43 |
44 def getPublishers(self): | 44 def getPublishers(self): |
45 return [] | |
46 | |
47 def getTaskRunners(self): | |
45 return [] | 48 return [] |
46 | 49 |
47 def initialize(self, app): | 50 def initialize(self, app): |
48 pass | 51 pass |
49 | 52 |
102 def getPipelines(self): | 105 def getPipelines(self): |
103 return self._getPluginComponents('getPipelines') | 106 return self._getPluginComponents('getPipelines') |
104 | 107 |
105 def getPublishers(self): | 108 def getPublishers(self): |
106 return self._getPluginComponents('getPublishers') | 109 return self._getPluginComponents('getPublishers') |
110 | |
111 def getTaskRunners(self): | |
112 return self._getPluginComponents('getTaskRunners') | |
107 | 113 |
108 def _ensureLoaded(self): | 114 def _ensureLoaded(self): |
109 if self._plugins is not None: | 115 if self._plugins is not None: |
110 return | 116 return |
111 | 117 |