HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sos/collector/transports/__pycache__/local.cpython-310.pyc
o

-�_g��@s0ddlZddlZddlmZGdd�de�ZdS)�N)�RemoteTransportc@sPeZdZdZdZdd�Zdd�Zedd��Zd	d
�Z	dd�Z
d
d�Zdd�ZdS)�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.
    �
local_nodecC�dS�NT�)�self�passwordrr�@/usr/lib/python3/dist-packages/sos/collector/transports/local.py�_connect�zLocalTransport._connectcCrrr�rrrr
�_disconnectrzLocalTransport._disconnectcCrrrr
rrr
�	connected szLocalTransport.connectedcCs&|�d|�d|���t�||�dS)NzMoving z to T)�	log_debug�shutil�copy�r�fname�destrrr
�_retrieve_file$szLocalTransport._retrieve_filecCs|S)Nr)r�cmdrrr
�_format_cmd_for_exec)rz#LocalTransport._format_cmd_for_execcCrrrrrrr
�_copy_file_to_remote,rz#LocalTransport._copy_file_to_remotecCsVtj�|�r!t|ddd��}|��Wd�S1swY|�d|���dS)N�rzutf-8)�encodingzNo such file: �)�os�path�exists�open�readr)rr�rfilerrr
�
_read_file/s �zLocalTransport._read_fileN)
�__name__�
__module__�__qualname__�__doc__�namerr�propertyrrrrr#rrrr
rs
r)rr�sos.collector.transportsrrrrrr
�<module>s