aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command_deploy.py
blob: cb2eb41067eb9741fb48263129b006ad1b574247 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)