Did I find the right examples for you? yes no

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

src/m/t/Mturk-Tracker-HEAD/deployment/modules/doc.py   Mturk-Tracker(Download)
from django.template.defaultfilters import slugify
from os.path import join as pjoin
from fabric.api import env, settings, sudo, hide
from fabric.colors import yellow
from utils import (cget, local_files_dir, show, upload_template_with_perms,
        source = pjoin(local_dir, script_name)
        destination = pjoin(cget("script_dir"), script_name)
        upload_template_with_perms(source, destination, context, mode="755")
 
    # Upload formatted conf.py file
    show(yellow("Uploading formatted conf.py file."))
    conf_file = "conf_formatted.py"
    source = pjoin(cget("local_root"), "doc", 'source', conf_file)
    destination = pjoin(ddir, 'source', conf_file)
    upload_template_with_perms(source, destination, context, mode="755")
    source = pjoin(local_dir, fixture_name)
    destination = pjoin(ddir, fixture_name)
    upload_template_with_perms(source, destination, context, mode="755")
    run_django_cmd('loaddata', args=destination)
 

src/m/t/Mturk-Tracker-HEAD/deployment/modules/supervisor.py   Mturk-Tracker(Download)
from os.path import join as pjoin, isdir
from fabric.api import env, prefix, settings, sudo, hide
from fabric.colors import yellow, red
from utils import (cget, local_files_dir, show, upload_template_with_perms,
    cset, create_target_directories, upload_templated_folder_with_perms)
        else:
            upload_template_with_perms(
                source, destination, context, mode="644")
 
    scripts = ['supervisorctl.sh', 'supervisord.sh']
    for script_name in scripts:
        source = pjoin(cget("local_root"), 'deployment', 'scripts', script_name)
        destination = pjoin(cget("script_dir"), script_name)
        upload_template_with_perms(source, destination, context, mode="755")