Skip to content
Browse files

Fabfile tweaks

  • Loading branch information...
1 parent 3427553 commit e8c0ee6c556eb5fa0f3a8565df8db8a074a3fc2d @bitprophet bitprophet committed Apr 30, 2009
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
#

0 comments on commit e8c0ee6

Please sign in to comment.
Something went wrong with that request. Please try again.