MCPcopy
hub / github.com/budtmo/docker-android / set_status

Method set_status

cli/src/device/__init__.py:67–72  ·  view source on GitHub ↗
(self, current_status)

Source from the content-addressed store, hash-verified

65 signal.signal(signal.SIGTERM, self.tear_down)
66
67 def set_status(self, current_status) -> None:
68 bashrc_file = f"{os.getenv(ENV.WORK_PATH)}/device_status"
69 with open(bashrc_file, "w+") as bf:
70 bf.write(current_status)
71 # It won't work using docker exec
72 # os.environ[constants.ENV_DEVICE_STATUS] = current_status
73
74 def _prepare_analytics_payload(self) -> None:
75 self.form_data.update({

Callers 5

createMethod · 0.95
startMethod · 0.95
wait_until_readyMethod · 0.95
reconfigureMethod · 0.95
keep_aliveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected