This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Port of "Fabric streamlogger" to Python3 | |
# Credit (originally): https://gist.github.com/2376336.git | |
# pmuller - streamlogger.py | |
import sys | |
import logging | |
from io import StringIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
from __future__ import with_statement | |
import os | |
import sys | |
import datetime | |
from fabric.api import cd, run, prefix, task, env, get, roles | |
from fabric.colors import yellow, green | |
from contextlib import contextmanager as _contextmanager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
from fabric.context_managers import cd | |
from fabric.operations import local as lrun, sudo | |
from fabric.contrib.files import sed | |
from fabric.utils import warn | |
from local_fabfile import root, prod, lh, SERVER_IP | |
def virtualenv(command, run_directory=''): | |
if run_directory == '': |