Mercurial > piecrust2
diff piecrust/plugins/builtin.py @ 613:e2e955a3bb25
publish: Add publish command.
* Add `shell` publisher.
* Refactor admin panel's publishing backend to use that, along with the new
PID file support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 04 Feb 2016 08:05:03 -0800 |
parents | b884bef3e611 |
children | 5d8e0c8cdb5f |
line wrap: on
line diff
--- a/piecrust/plugins/builtin.py Thu Feb 04 08:03:52 2016 -0800 +++ b/piecrust/plugins/builtin.py Thu Feb 04 08:05:03 2016 -0800 @@ -6,6 +6,7 @@ RootCommand, ShowConfigCommand, FindCommand, ShowSourcesCommand, ShowRoutesCommand, ShowPathsCommand) from piecrust.commands.builtin.plugins import PluginsCommand +from piecrust.commands.builtin.publishing import PublishCommand from piecrust.commands.builtin.scaffolding import ( PrepareCommand, DefaultPrepareTemplatesCommandExtension, @@ -33,6 +34,7 @@ from piecrust.processing.sass import SassProcessor from piecrust.processing.sitemap import SitemapProcessor from piecrust.processing.util import ConcatProcessor +from piecrust.publishing.shell import ShellCommandPublisher from piecrust.sources.default import DefaultPageSource from piecrust.sources.posts import ( FlatPostsSource, ShallowPostsSource, HierarchyPostsSource) @@ -64,7 +66,8 @@ BakeCommand(), ShowRecordCommand(), ServeCommand(), - AdministrationPanelCommand()] + AdministrationPanelCommand(), + PublishCommand()] def getCommandExtensions(self): return [ @@ -117,3 +120,7 @@ JekyllImporter(), WordpressXmlImporter()] + def getPublishers(self): + return [ + ShellCommandPublisher] +