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

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/d/p/dploi-fabric-0.1.30/dploi_fabric/supervisor.py   dploi-fabric(Download)
def stop():
    for site, site_config in config.sites.items():
        run('sudo supervisorctl stop %s:*' %  get_group_name(site, site_config))
 
 
@task
def start():
    for site, site_config in config.sites.items():
def restart():
    for site, site_config in config.sites.items():
        run('sudo supervisorctl restart %s:*' % get_group_name(site, site_config))
 
 
    Note: "status" does not yet support the group syntax
    """
    for site, site_config in config.sites.items():
        group_name = get_group_name(site, site_config)
        for process_name, process_cmd in site_config.processes.items():
def add():
    for site, site_config in config.sites.items():
        group_name = get_group_name(site, site_config)
        for process_name, process_cmd in site_config.processes.items():
            run('sudo supervisorctl add %s:%s' % (group_name, process_name))

src/d/p/dploi-fabric-HEAD/dploi_fabric/supervisor.py   dploi-fabric(Download)
def stop():
    for site, site_config in config.sites.items():
        run('sudo supervisorctl stop %s:*' %  get_group_name(site, site_config))
 
 
@task
def start():
    for site, site_config in config.sites.items():
def restart():
    for site, site_config in config.sites.items():
        run('sudo supervisorctl restart %s:*' % get_group_name(site, site_config))
 
 
    Note: "status" does not yet support the group syntax
    """
    for site, site_config in config.sites.items():
        group_name = get_group_name(site, site_config)
        for process_name, process_cmd in site_config.processes.items():
def add():
    for site, site_config in config.sites.items():
        group_name = get_group_name(site, site_config)
        for process_name, process_cmd in site_config.processes.items():
            run('sudo supervisorctl add %s:%s' % (group_name, process_name))

src/d/p/dploi-fabric-0.1.30/dploi_fabric/redis.py   dploi-fabric(Download)
def update_config_file(dryrun=False):
    for site, site_config in config.sites.items():
        redis_processes = [(x, site_config.processes[x]) for x in site_config.processes if site_config.processes[x]["type"] == "redis"]
        template_path = site_config['redis']['template']
        print redis_processes

src/d/p/dploi-fabric-0.1.30/dploi_fabric/nginx.py   dploi-fabric(Download)
def update_config_file(dryrun=False):
    output = ""
    for site, site_config in config.sites.items():
        context_dict = site_config
        context_dict.update({

src/d/p/dploi-fabric-HEAD/dploi_fabric/redis.py   dploi-fabric(Download)
def update_config_file(dryrun=False):
    for site, site_config in config.sites.items():
        redis_processes = [(x, site_config.processes[x]) for x in site_config.processes if site_config.processes[x]["type"] == "redis"]
        template_path = site_config['redis']['template']
        print redis_processes

src/d/p/dploi-fabric-HEAD/dploi_fabric/nginx.py   dploi-fabric(Download)
def update_config_file(dryrun=False):
    output = ""
    for site, site_config in config.sites.items():
        context_dict = site_config
        context_dict.update({