File: //lib/python3.6/site-packages/ipapython/install/__pycache__/common.cpython-36.opt-1.pyc
3
�d[e+
� @ s� d Z ddlZddlmZ ddlmZ dddd d
gZeje�Z dd� Z
G dd� dej�ZG d
d� de�Z
G dd� dej�Zdd � Zdd
� ZdS )z
Common stuff.
� N� )�core)�from_�step�Installable�Interactive� installer�uninstallerc C s dd� } | S )Nc S s t jt�}t| �|_|S )N)r Z Component�Step�staticmethod�
_installer)�func�cls� r �/usr/lib/python3.6/common.py� decorator s
zstep.<locals>.decoratorr )r r r r r s c sJ e Zd ZdZejd�Z� fdd�Zdd� Z� fdd�Z � fd d
�Z
� ZS )r z7
Configurable which does install or uninstall.
Fc s$ t t| �j� }| jr tt|��}|S )N)�superr �_get_components�uninstalling�reversed�list)�selfZ
components)� __class__r r r $ s zInstallable._get_componentsc C s | j r| j� S | j� S d S )N)r �
_uninstall�_install)r r r r �
_configure* s zInstallable._configurec s t t| �j� S )N)r r r )r )r r r r 0 s zInstallable._installc s t t| �j� S )N)r r r )r )r r r r 5 s zInstallable._uninstall)�__name__�
__module__�__qualname__�__doc__r �Propertyr r r r r �
__classcell__r r )r r r s
c sX e Zd Zedd� �Z� fdd�Zedd� �Z� fdd�Zed d
� �Z e
dd� �Z� ZS )
r
c C s t d��d S )N�parent)�AttributeError)r r r r r"