Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/buildah.cpython-36.pyc
3

\��hK�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s$eZdZdZdZdZdZdd�ZdS)	�Buildahz#Buildah container and image builder�buildah�	containerc	s�dddddg}�jdd�|D���fdd	�}|d
�}|drtx4|dj�D]$}|j�d}�jd|��dd�qLW|d�}|dr�x4|dj�D]$}|j�d
}�jd|��dd�q�WdS)NZ
containerszcontainers --allZimageszimages --all�versioncSsg|]}d|���qS)zbuildah �)�.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 )Zsubdirzbuildah images -nzbuildah inspect -t image ���)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