Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/c/o/collective.hostout-1.0a5/collective/hostout/fabfile.py   collective.hostout(Download)
from fabric.contrib.files import append
import fabric.contrib.project
from collective.hostout.hostout import buildoutuser, asbuildoutuser
from fabric.context_managers import cd
from pkg_resources import resource_filename
    else:
        uploads = None, None, [file]
    with asbuildoutuser():
        for root, dirs, files in uploads:
            for dir in dirs:
def putrsync(dir):
    """ rsync a local buildout folder with the remote buildout """
    with asbuildoutuser():
        parent = '/'.join(dir.split('/')[:-1])
        remote = api.env.path + '/' + parent
        hasBuildoutUser = False
    else:
        with asbuildoutuser():
            try:
                api.run("[ -e %s/bin/buildout ]"%api.env.path, pty=True)

src/h/o/hostout.supervisor-1.0a4/hostout/supervisor/fabfile.py   hostout.supervisor(Download)
import os
import os.path  #import os.path.join, os.path.basename, os.path.dirname
from fabric import api, contrib
from collective.hostout.hostout import buildoutuser, asbuildoutuser
 
    supervisor = hostout.options.get('sudosupervisor') or hostout.options.get('supervisor')
    try:
        with asbuildoutuser():
            api.run("%(bin)s/%(supervisor)sctl reload"% dict(bin=bin, supervisor=supervisor))
    except:
        if hostout.options.get('sudosupervisor',None):
            with asbuildoutuser():