def nginx_clean(ctx, remote_path, nginx_list, key_file, user): hosts = _load_nginx_hosts(nginx_list) sshs = [get_ssh(host, key_file, user) for host in hosts] clean_nginx(sshs, remote_path)
def nginx_reload(ctx, local_path, remote_path, nginx_list, key_file, user): hosts = _load_nginx_hosts(nginx_list) sshs = [get_ssh(host, key_file, user) for host in hosts] reload_nginx(sshs, local_path, remote_path)