summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-01-13 16:16:30 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-01-21 16:15:30 -0800
commitc224fdecf174077f3b7a15f056e65b10282fed38 (patch)
tree0459dcdc9d4b0ff7614f62e02ad7978d9007d178 /tasks.py
parentccb7a6c2cd22689d363a03da2c7a2bcf4e27a0c8 (diff)
downloadparamiko-c224fdecf174077f3b7a15f056e65b10282fed38.tar.gz
Use new behavior from newer Invoke
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/tasks.py b/tasks.py
index e8cbd3ee..3326a773 100644
--- a/tasks.py
+++ b/tasks.py
@@ -2,17 +2,13 @@ from invoke import Collection
from invocations import docs, testing
-# TODO: let from_module specify new name
-api = Collection.from_module(docs)
-# TODO: maybe allow rolling configuration into it too heh
-api.configure({
+# Usage doc/API site
+api = Collection.from_module(docs, name='docs', config={
'sphinx.source': 'sites/docs',
'sphinx.target': 'sites/docs/_build',
})
-api.name = 'docs'
-main = Collection.from_module(docs)
-main.name = 'main'
-main.configure({
+# Main/about/changelog site
+main = Collection.from_module(docs, name='main', config={
'sphinx.source': 'sites/main',
'sphinx.target': 'sites/main/_build',
})