File: //usr/lib/python3.9/site-packages/ipapython/install/__pycache__/common.cpython-39.pyc
a
}�f+
� @ s� d Z ddlZddlmZ ddlmZ g d�Ze�e�Z dd� Z
G d d
� d
ej�ZG dd� de�Z
G d
d� dej�Zdd� Zdd� ZdS )z
Common stuff.
� N� )�core)�from_)�step�Installable�Interactive� installer�uninstallerc C s dd� } | S )Nc S s t �t�}t| �|_|S �N)r Z Component�Step�staticmethod�
_installer)�func�cls� r �</usr/lib/python3.9/site-packages/ipapython/install/common.py� decorator s
zstep.<locals>.decoratorr )r r r r r s r c sJ e Zd ZdZe�d�Z� fdd�Zdd� Z� fdd�Z � fd d
�Z
� ZS )r z7
Configurable which does install or uninstall.
Fc s$ t t| ��� }| jr tt|��}|S r
)�superr �_get_components�uninstalling�reversed�list)�self�
components�� __class__r r r $ s zInstallable._get_componentsc C s | j r| �� S | �� S d S r
)r �
_uninstall�_install�r r r r �
_configure* s zInstallable._configurec s"