Did I find the right examples for you? yes no

All Samples(16)  |  Call(13)  |  Derive(0)  |  Import(3)

            @wraps(func)
    def helper(*args, **kwds):
        return GeneratorContextManager(func(*args, **kwds))
        


src/c/e/celery-deploy-HEAD/celerydeploy/worker.py   celery-deploy(Download)
from fabric.api import run, env, put, task, require, puts, sudo
 
from .utils import virtualenv, mpath, import_celeryconfig
 
 
    sudo('pip install virtualenv')
    run('virtualenv %s' % env.celery_path)
    with virtualenv(env.celery_path):
        conf = import_celeryconfig()
        run('pip install celery')
    to change the default configuration"""
    require('celery_path')
    with virtualenv(env.celery_path):
        sconf = 'supervisord.conf'
        if not os.path.exists(sconf):
def stop():
    "stop workers"
    require('celery_path')
    with virtualenv(env.celery_path):
        run('supervisorctl -c supervisord.conf stop celeryd')
def restart():
    "restart workers"
    require('celery_path')
    with virtualenv(env.celery_path):
        run('supervisorctl -c supervisord.conf restart celeryd')

src/c/e/celerydeploy-0.0.2/celerydeploy/worker.py   celerydeploy(Download)
from fabric.api import run, env, put, task, require
 
from .utils import virtualenv, mpath, import_celeryconfig
 
 
    require('celery_path')
    run('virtualenv %s' % env.celery_path)
    with virtualenv(env.celery_path):
        run('pip install celery')
        run('pip install supervisor')
    to change the default configuration"""
    require('celery_path')
    with virtualenv(env.celery_path):
        sconf = 'supervisord.conf'
        if not os.path.exists(sconf):
def stop():
    "stop workers"
    require('celery_path')
    with virtualenv(env.celery_path):
        run('supervisorctl -c supervisord.conf stop celeryd')
def restart():
    "restart workers"
    require('celery_path')
    with virtualenv(env.celery_path):
        run('supervisorctl -c supervisord.conf restart celeryd')

src/m/a/manticore-django-HEAD/manticore_django/fabfile/vagrant.py   manticore-django(Download)
from fabric.operations import local, os, get, put
from fabric.tasks import execute
from utils import log_call, pip, project, activate_venv, virtualenv
from deploy import vagrant, install_prereq, installdb, fix_db_permissions, installapp, copy_db_ssh_keys, create_prereq, removeapp, run, sudo, manage, create_rabbit, createdb, createapp2, up
from fabric.contrib.files import append
def pip_install_task():
    with virtualenv():
        sudo("pip install -r %s/%s" % (env.proj_path, env.reqs_path))