HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/sos/presets/__pycache__/__init__.cpython-36.pyc
3

\��h��	@s�ddlZddlZddlmZdZdZdZdZGdd�d�Zd	Z	d
Z
dZdZd
Z
dZedddddd�Ze	ee	e
ee�d�eeee
eed�iZdS)�N)�
SoSOptionsz/etc/sos/presets.d�desc�note�argsc@sZeZdZdZdZdZdZe�ZdZ	dd�Z
dd�Zddde�fd	d
�Zdd�Z
d
d�ZdS)�PresetDefaultsa�Preset command line defaults to allow for quick reference to sets of
    commonly used options

    :param name: The name of the new preset
    :type name: ``str``

    :param desc: A description for the new preset
    :type desc: ``str``

    :param note: Note for the new preset
    :type note: ``str``

    :param opts: Options set for the new preset
    :type opts: ``SoSOptions``
    NTc	Cs*d|j�d|j�d|j�dt|j��d�	S)zeReturn a human readable string representation of this
            ``PresetDefaults`` object.
        zname=z desc=z note=z opts=(�))�namerr�str�opts)�self�r�/usr/lib/python3.6/__init__.py�__str__4szPresetDefaults.__str__c	Cs*d|j�d|j�d|j�dt|j��d�	S)zgReturn a machine readable string representation of this
            ``PresetDefaults`` object.
        zPresetDefaults(name='z' desc='z' note='z' opts=(r)rrr�reprr
)rrrr
�__repr__;szPresetDefaults.__repr__�cCs||_||_||_||_dS)z�Initialise a new ``PresetDefaults`` object with the specified
            arguments.

            :returns: The newly initialised ``PresetDefaults``
        N)rrrr
)rrrrr
rrr
�__init__BszPresetDefaults.__init__c
Cs�|jrtd��|jj�}|jt|jt|jt	|ii}t
jj|�sLt
j
|dd�tt
jj||j�ddd��}tj||�WdQRXdS)z�Write this preset to disk in JSON notation.

        :param presets_path: the directory where the preset will be written
        :type presets_path: ``str``
        zCannot write built-in preseti�)�mode�wzutf-8)�encodingN)�builtin�	TypeErrorr
�dictr�DESCr�NOTEr�OPTS�os�path�exists�makedirs�open�join�json�dump)r�presets_pathZodictZpdictZpfilerrr
�writeMs

zPresetDefaults.writecCstjtjj||j��dS)z�Delete a preset from disk

        :param presets_path: the directory where the preset is saved
        :type presets_path: ``str``
        N)r�unlinkrr!r)rr$rrr
�deleteaszPresetDefaults.delete)�__name__�
__module__�__qualname__�__doc__rrrrr
rrrrr%r'rrrr
rsrZnonezDo not load a presetz+Use to disable automatically loaded presetsZminimalzCSmall and quick report that reduces sos report resource consumptionzXMay be useful for low-resource systems, but may not provide sufficient data for analysis�
�T)Zlog_sizeZjournal_sizeZplugin_timeoutZcommand_timeoutZlow_priority)rrrr
)r"rZsos.optionsrZPRESETS_PATHrrrrZ	NO_PRESETZNO_PRESET_DESCZNO_PRESET_NOTEZSMALL_PRESETZSMALL_PRESET_DESCZSMALL_PRESET_NOTEZSMALL_PRESET_OPTSZGENERIC_PRESETSrrrr
�<module>s*R