diff options
| author | 2013-03-13 20:58:39 -0300 | |
|---|---|---|
| committer | 2013-03-13 20:58:39 -0300 | |
| commit | 1004b9f3c61574acbdb3ec2f303d35307949fb7e (patch) | |
| tree | 3ae41121a82650e6889fda82a4316f989dfc0b4b /nikola/plugins/command_deploy.py | |
| parent | 1c7c74d71f5dc9d13d029c9df8d46f27907a7503 (diff) | |
| parent | 8b14a1e5b2ca574fdd4fd2377567ec98a110d4b6 (diff) | |
Merge tag 'upstream/5.4.2'
Upstream version 5.4.2
Diffstat (limited to 'nikola/plugins/command_deploy.py')
| -rw-r--r-- | nikola/plugins/command_deploy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nikola/plugins/command_deploy.py b/nikola/plugins/command_deploy.py index 48d6e91..ffa86ab 100644 --- a/nikola/plugins/command_deploy.py +++ b/nikola/plugins/command_deploy.py @@ -23,7 +23,6 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. from __future__ import print_function -from optparse import OptionParser import os from nikola.plugin_categories import Command @@ -33,9 +32,10 @@ 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)) + doc_usage = "" + doc_purpose = "Deploy the site." + + def _execute(self, command, args): for command in self.site.config['DEPLOY_COMMANDS']: print("==>", command) os.system(command) |
