

def render(self, processes, context):
    run_tpl = self.get_template('run')
    log_tpl = self.get_template('log/run')
    for p in processes:
        ctx = context.copy()
        ctx.update({
            'process': p,
        })
        name = '{0}-{1}'.format(ctx['app'], dashrepl(p.name))
        for (k, v) in p.env.items():
            (yield File(os.path.join(name, 'env', k), v))
        (yield File(os.path.join(name, 'run'), run_tpl.render(ctx), executable=True))
        (yield File(os.path.join(name, 'log', 'run'), log_tpl.render(ctx), executable=True))

dataset/ETHPy150Open nickstenning/honcho/honcho/export/runit.py Export.render/original