def setup_worker_node(reuse_existing_installs): logger.info("setup_worker_node: reuse_existing_installs = %s" % reuse_existing_installs) fl = FileLocator() dist_path = fl.get_engage_distribution_file() # todo: don't copy engage if existing install can be reused setup_script = os.path.join(fl.get_sw_packages_dir(), "setup_caretaker.sh") put(setup_script, "~/setup_caretaker.sh") run("chmod 755 ~/setup_caretaker.sh") if reuse_existing_installs: run("~/setup_caretaker.sh --reuse-existing-install") else: put(dist_path, "~/" + os.path.basename(dist_path)) run("~/setup_caretaker.sh")
def get_djm_connection(): fl = FileLocator() return get_local_connection(fl.get_djm_server_dir())