2018-05-15 16:57:56 +02:00
|
|
|
"""
|
|
|
|
Fabric is a Python library for performing devops tasks. If you have Fabric installed (systemwide or via pip) you can
|
|
|
|
run commands like this:
|
|
|
|
|
|
|
|
$ fab code_quality
|
|
|
|
|
|
|
|
For a list of commands:
|
|
|
|
|
|
|
|
$ fab -l
|
|
|
|
|
|
|
|
For help on fabric itself:
|
|
|
|
|
|
|
|
$ fab -h
|
|
|
|
|
|
|
|
For more help on a particular command
|
|
|
|
"""
|
|
|
|
|
|
|
|
from fabric.api import env
|
|
|
|
|
2018-08-15 12:37:43 +02:00
|
|
|
from fabfile.tasks import build_docs, clean, code_quality, configure, deploy, push_docs, test, start, stop
|
2018-05-15 16:57:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Without this, `fab -l` would display the whole docstring as preamble
|
|
|
|
__doc__ = ""
|
|
|
|
|
|
|
|
# This list defines which tasks are made available to the user
|
|
|
|
__all__ = [
|
2018-05-26 14:43:21 +02:00
|
|
|
"build_docs",
|
|
|
|
"clean",
|
2018-08-15 12:37:43 +02:00
|
|
|
"code_quality",
|
|
|
|
"configure",
|
|
|
|
"deploy",
|
|
|
|
"push_docs",
|
|
|
|
"start",
|
|
|
|
"stop",
|
|
|
|
"test",
|
2018-05-15 16:57:56 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# Honour the user's ssh client configuration
|
|
|
|
env.use_ssh_config = True
|