@task
@requires_config(StandaloneConfig)
def run(script, remote_dir='/tmp'):
    script_name = path.basename(script)
    remote_path = path.join(remote_dir, script_name)
    put(script, remote_path)
    sudo('chmod u+x %s' % remote_path)
    sudo(remote_path)
    sudo('rm %s' % remote_path)
Run an arbitrary script on all nodes in the cluster.
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/script.py/run