HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/collector/transports/__pycache__/local.cpython-38.pyc
U

i��d`�@s0ddlZddlZddlmZGdd�de�ZdS)�N)�RemoteTransportc@sHeZdZdZdZdd�Zdd�Zedd��Zd	d
�Z	dd�Z
d
d�ZdS)�LocalTransportz�
    A 'transport' to represent a local node. No remote connection is actually
    made, and all commands set to be run by this transport are executed locally
    without any wrappers.
    Z
local_nodecCsdS�NT�)�selfZpasswordrr�@/usr/lib/python3/dist-packages/sos/collector/transports/local.py�_connectszLocalTransport._connectcCsdSrr�rrrr�_disconnectszLocalTransport._disconnectcCsdSrrr	rrr�	connected szLocalTransport.connectedcCs"|�d||f�t�||�dS)NzMoving %s to %sT)�	log_debug�shutil�copy)r�fname�destrrr�_retrieve_file$szLocalTransport._retrieve_filecCs|S)Nr)r�cmdrrr�_format_cmd_for_exec)sz#LocalTransport._format_cmd_for_execc
CsDtj�|�r2t|d��}|��W5QR�SQRX|�d|�dS)N�rzNo such file: %s�)�os�path�exists�open�readr)rrZrfilerrr�
_read_file,s
zLocalTransport._read_fileN)�__name__�
__module__�__qualname__�__doc__�namerr
�propertyrrrrrrrrrs
r)rr
Zsos.collector.transportsrrrrrr�<module>s