@task()
def deploy_server_conf(source_path=env.source_path, target_path=env.target_path):
    print ""
    print(green("Deploy config files on host(s): %s" % env.hosts, bold=True))
    print(green(" - source path = %s" % source_path, bold=True))
    print(green(" - target path = %s" % target_path, bold=True))
    print(green(" - target host = %s" % env.hosts, bold=True))
    print(green(" - Copy following file:", bold=True))
    print(green("   - config.ini", bold=True))
    print(green("   - licences.lst", bold=True))

    result = prompt(green("\nContinue ?", bold=True), default='y')
    if result != 'y':
        abort("Interrupted by user.")

    print(blue("Install config", bold=True))
    run("sudo mkdir -p %s/conf" % target_path)
    run("sudo rsync -r %s/etc/puli/config.ini %s/conf" % (source_path, target_path))
    run("sudo rsync -r %s/etc/puli/licences.lst %s/conf" % (source_path, target_path))
Determines if our version of urllib2.urlopen has a timeout argument.
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/fabfile.py/deploy_server_conf--crossover with--dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/pyactiveresource/connection.py/_urllib_has_timeout