aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command_deploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/plugins/command_deploy.py')
-rw-r--r--nikola/plugins/command_deploy.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/nikola/plugins/command_deploy.py b/nikola/plugins/command_deploy.py
new file mode 100644
index 0000000..cb2eb41
--- /dev/null
+++ b/nikola/plugins/command_deploy.py
@@ -0,0 +1,16 @@
+from optparse import OptionParser
+import os
+
+from nikola.plugin_categories import Command
+
+
+class Deploy(Command):
+ """Deploy site. """
+ name = "deploy"
+
+ def run(self, *args):
+ parser = OptionParser(usage="nikola %s [options]" % self.name)
+ (options, args) = parser.parse_args(list(args))
+ for command in self.site.config['DEPLOY_COMMANDS']:
+ print "==>", command
+ os.system(command)