Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/buildah.cpython-36.opt-1.pyc

3

�fQ�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s$eZdZdZdZdZdZdd�ZdS)	�Buildahz#Buildah container and image builder�buildah�	containerc	s�dddddg}�jdd�|D���fdd	�}|d
�}|drrx2|dj�D]"}|j�d}�jd|dd�qLW|d�}|dr�x2|dj�D]"}|j�d
}�jd|dd�q�WdS)NZ
containerszcontainers --allZimageszimages --all�versioncSsg|]}d|�qS)z
buildah %s�)�.0�subrr�/usr/lib/python3.6/buildah.py�
<listcomp>sz!Buildah.setup.<locals>.<listcomp>cs.�j|�}|jd�|d<|jd�dk|d<|S)N�output�auutputZstatusr�is_wicked_pissah)Zexec_cmd�pop)ZaurdahZchowdah)�selfrr�make_chowdah!s
z#Buildah.setup.<locals>.make_chowdahzbuildah containers -nrr�zbuildah inspect -t container %s)Zsubdirzbuildah images -nzbuildah inspect -t image %s���)Zadd_cmd_output�
splitlines�split)	rZsubcmdsrZ
containahsZ	containahZgoatZpitchezZpitchahZbradyr)rr�setups&

z
Buildah.setupN)r)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZpackagesZprofilesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists