summaryrefslogtreecommitdiffhomepage
path: root/fabfile.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-10-14 20:40:59 -0700
committerJeff Forcier <jeff@bitprophet.org>2012-10-14 20:40:59 -0700
commit78815afe9db56846279ceee5af3863c0ee16e9b8 (patch)
tree17fea026804e18a792c2897924d2ace42f1e39d1 /fabfile.py
parent45969670db14401819958dd46fa72b904c3bd8cc (diff)
parent8e5f774965bc281b8154379f68e6152356eedfd8 (diff)
Merge branch '1.8'
Conflicts: NEWS
Diffstat (limited to 'fabfile.py')
-rw-r--r--fabfile.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/fabfile.py b/fabfile.py
new file mode 100644
index 00000000..29394f94
--- /dev/null
+++ b/fabfile.py
@@ -0,0 +1,13 @@
+from fabric.api import task, sudo, env
+from fabric.contrib.project import rsync_project
+
+
+@task
+def upload_docs():
+ target = "/var/www/paramiko.org"
+ staging = "/tmp/paramiko_docs"
+ sudo("mkdir -p %s" % staging)
+ sudo("chown -R %s %s" % (env.user, staging))
+ sudo("rm -rf %s/*" % target)
+ rsync_project(local_dir='docs/', remote_dir=staging, delete=True)
+ sudo("cp -R %s/* %s/" % (staging, target))