fabric-verbose

fabric-verbose


Keywords
Fabric, Verbose
License
MIT
Install
pip install fabric-verbose==0.1.0

Documentation

Fabric-Verbose

At a glance

fabfile.py

from fabric_verbose import verbose

# ...

def deploy():
     with verbose("Discarding local changes") as v:
         v.run('git reset HEAD; git clean -fd; git checkout .')

     with verbose("Pulling source code") as v:
         v.run('git pull')

     with verbose("Installing requirements") as v:
         v.run('pip install -r requirements.txt')

     with verbose("Starting") as v:
         v.run('fab start')

Output

* Discarding local changes... Done
* Pulling source code... Done
* Installing requirements... Done
* Starting... Failed

Fatal error: /bin/sh: uwsgi: command not found

Aborting.

Installation

$ pip install fabric-verbose