%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/pecl.pyo |
� ���^c @@ s] d Z d d l m Z m Z m Z d d l m Z d � Z d e e d d � Z d � Z d S( u� Installation of PHP Extensions Using pecl ========================================= These states manage the installed pecl extensions. Note that php-pear must be installed for these states to be available, so pecl states should include a requisite to a pkg.installed state for the package which provides pecl (``php-pear`` in most cases). Example: .. code-block:: yaml php-pear: pkg.installed mongo: pecl.installed: - require: - pkg: php-pear i ( t absolute_importt print_functiont unicode_literals( t sixc C@ s d t k r d St S( u? Only load if the pecl module is available in __salt__ u pecl.listu pecl( t __salt__t False( ( ( s4 /usr/lib/python2.7/site-packages/salt/states/pecl.pyt __virtual__ s u stablec C@ s� t | t j � r1 | d k r1 t j | � } n i | d 6d d 6d d 6i d 6} d | k rw | j d � \ } } n d } | } t d | � } | | k r� | d k s� | | | k r� | | | k r� t | d <d j | � | d <| Sn | d k rd j | | � } n t d r1d j | � | d <| St d | d | d | d | �r�t | d <d | d | <d j | � | d <n t | d <d j | � | d <| S( u� .. versionadded:: 0.17.0 Make sure that a pecl extension is installed. name The pecl extension name to install version The pecl extension version to install. This option may be ignored to install the latest stable version. defaults Use default answers for extensions such as pecl_http which ask questions before installation. Without this option, the pecl.installed state will hang indefinitely when trying to install these extensions. force Whether to force the installed version or not preferred_state The pecl extension state to install u nameu resultu u commentu changesu /u pecl.listu( Pecl extension {0} is already installed.u {0}-{1}u testu, Pecl extension {0} would have been installedu pecl.installt defaultst forcet preferred_stateu Installedu- Pecl extension {0} was successfully installedu% Could not install pecl extension {0}.N( t isinstanceR t string_typest Nonet text_typet splitR t Truet formatt __opts__R ( t namet versionR R R t rett channelt packaget installed_pecls( ( s4 /usr/lib/python2.7/site-packages/salt/states/pecl.pyt installed"