def deploy_all(source_directory, should_warn=True):
    host_config_dir = os.path.join(source_directory, env.host)
    for file_name in ALL_CONFIG:
        local_config_file = os.path.join(host_config_dir, file_name)
        if not os.path.exists(local_config_file):
            if should_warn:
                warn("No configuration file found for %s at %s"
                     % (env.host, local_config_file))
            continue
        remote_config_file = os.path.join(constants.REMOTE_CONF_DIR, file_name)
        put_secure(PRESTO_STANDALONE_USER_GROUP, 0600, local_config_file,
                   remote_config_file)
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/configure_cmds.py/deploy_all/original