Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fabfile tweaks

  • Loading branch information...
commit e8c0ee6c556eb5fa0f3a8565df8db8a074a3fc2d 1 parent 3427553
@bitprophet bitprophet authored
Showing with 12 additions and 4 deletions.
  1. +12 −4 fabfile.py
View
16 fabfile.py
@@ -2,7 +2,8 @@
Fabric's own fabfile.
"""
-from fabric.operations import local, require, prompt
+from fabric.api import *
+from fabric.contrib import rsync_project
#
@@ -18,15 +19,22 @@ def test():
print(local('nosetests -sv', show_stderr=True))
-def make_docs():
+def build_docs():
"""
Generate the Sphinx documentation
"""
- print(local('cd docs && make clean html'))
+ print(local('cd docs && make clean html', show_stderr=True))
+
+
+@hosts('jforcier@fabfile.org')
+def push_docs():
+ build_docs()
+ rsync_project('/var/www/fabfile/', 'docs/_build/html/', delete=True)
+
#
-# Older stuff that need to be updated or removed
+# Older stuff that needs to be updated or removed
#
Please sign in to comment.
Something went wrong with that request. Please try again.