MCPcopy Index your code
hub / github.com/SpaceNetLab/StarryNet / sn_Emulation_Stop_Thread

Class sn_Emulation_Stop_Thread

starrynet/sn_utils.py:891–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889
890# A thread designed for stopping the emulation.
891class sn_Emulation_Stop_Thread(threading.Thread):
892
893 def __init__(self, remote_ssh, remote_ftp, file_path):
894 threading.Thread.__init__(self)
895 self.remote_ssh = remote_ssh
896 self.remote_ftp = remote_ftp
897 self.file_path = file_path
898
899 def run(self):
900 print("Deleting all native bridges and containers...")
901 self.remote_ftp.put(
902 os.path.join(os.getcwd(), "starrynet/sn_orchestrater.py"),
903 self.file_path + "/sn_orchestrater.py")
904 sn_remote_cmd(self.remote_ssh,
905 "python3 " + self.file_path + "/sn_orchestrater.py")

Callers 1

stop_emulationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected