Source: factory.core/extend.delegate/ObjSystem.py
Mixin providing system-level operations.
Methods for running local/remote commands, detecting Docker
and virtualization environments, managing singleton locks,
resolving IP addresses, and connecting to in-memory SQLite.
...
| Method | Signature | Description |
|---|---|---|
| system_run | system_run(command: str) -> str |
Execute a local shell command and return its output. |
| single_instance | single_instance(flavor_id: str = 'axion') -> bool |
Ensure only one instance runs using a file lock. |
| unlock_instance | unlock_instance() -> bool |
Unlock and delete the singleton lock file. |
| get_local_folder | get_local_folder() |
Return the local working folder path. |
| connect_mem_db | connect_mem_db() |
Create and return an in-memory SQLite connection. |