File: //lib/python3.6/site-packages/ipalib/install/__pycache__/service.cpython-36.pyc
3
�d[e, � @ s� d Z ddlmZ ddlmZmZmZ ddlmZm Z dd� Z
dd� Zd d
� Zdd� Z
d
d� Zdd� Zdd� Zdd� Zdd� ZeG dd� dejejej��ZG dd� de�ZdS )z
Base service installer module
� )�validate_domain_name)�common�core�typing)�group�knobc C s t | dt� �dhB | _| S )zj
Decorator which makes an installer attribute appear only in the prepare
phase of the install
�__exclude__�enroll)�getattr�setr )�obj� r
�/usr/lib/python3.6/service.py�prepare_only s r c C s t | dt� �dhB | _| S )zi
Decorator which makes an installer attribute appear only in the enroll
phase of the install
r �prepare)r
r r )r r
r
r �enroll_only s r c C s t | dt� �dhB | _| S )zT
Decorator which makes an installer attribute appear only in master install
r �replica_install)r
r r )r r
r
r �master_install_only s r c C s t | dt� �dhB | _| S )zU
Decorator which makes an installer attribute appear only in replica install
r �master_install)r
r r )r r
r
r �replica_install_only( s r c s. dd� �t �j�f� ��fdd�t��D ��S )Nc s � fdd�}t |�S )Nc s t � ��d S )N)�AttributeError)�self)�namer
r �removed2 s z&_does.<locals>.remove.<locals>.removed)�property)r r r
)r r �remove1 s z_does.<locals>.removec s. i | ]&}� t t �|�d t� �kr�|�|�qS )r )r
r )�.0�n)�arg�clsr r
r �
<dictcomp>: s z_does.<locals>.<dictcomp>)�type�__name__�dir)r r r
)r r r r �_does0 s r$ c C s
t | d�S )zl
Returns installer class stripped of attributes not related to the prepare
phase of the install
r )r$ )r r
r
r �preparesA s r% c C s
t | d�S )zk
Returns installer class stripped of attributes not related to the enroll
phase of the install
r )r$ )r r
r
r �enrollsI s r&