%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/pecl.pyo

�
���^c@@sdZddlmZmZmZddlZddlZyddlmZ	Wn!e
k
rqddlmZ	nXddlZ
ddlZ
ddlmZidd6Zeje�ZdZd	�Zed
�Zeedd�Zd
�Zd�Zdd�ZdS(u
Manage PHP pecl extensions.
i(tabsolute_importtprint_functiontunicode_literalsN(tquote(tsixulistulist_upeclcC@s#tjjjd�rtStdfS(NupecluEThe pecl execution module not loaded: pecl binary is not in the path.(tsalttutilstpathtwhicht__virtualname__tFalse(((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pyt__virtual__!scC@stdj|�}tjjj|�r1d|}ntd|dt�}|ddkr_|dStjd	�d
SdS(
u.
    Execute the command passed with pecl
    upecl {0}uyes ''u | ucmd.run_alltpython_shelluretcodeiustdoutu,Problem running pecl. Is php-pear installed?uNu	yes '' | (	tformatRRtdatatis_truet__salt__tTruetlogterror(tcommandtdefaultstcmdlinetret((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pyt_pecl(s

ustablec	C@sNt|tj�r|g}ndjt|��}|rdtdj|tdj|���d|�Stdj|tdj|���d|�t|t�s�|g}nx�|D]�}t}d|kr�|j	d�\}}nd	}t|�}xB|D]:}dj||j|�d�}||kr�t
}q�q�W|s�tSq�Wt
Sd	S(
u
    .. versionadded:: 0.17.0

    Installs one or several pecl extensions.

    pecls
        The pecl extensions to install.

    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

    CLI Example:

    .. code-block:: bash

        salt '*' pecl.install fuse
    u-d preferred_state={0}u{0} install -f {1}u Ru{0} install {1}u/u{0}-{1}iN(t
isinstanceRtstring_typesR
t
_cmd_quoteRtjointlistR
tsplittNonetlist_tgetR(	tpeclsRtforcetpreferred_statetpecltfoundtchanneltinstalled_peclstinstalled_pecl_with_version((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pytinstall9s2$$


cC@s@t|tj�r|g}ntdjtdj|����S(u�
    Uninstall one or several pecl extensions.

    pecls
        The pecl extensions to uninstall.

    CLI Example:

    .. code-block:: bash

        salt '*' pecl.uninstall fuse
    u
uninstall {0}u (RRRRR
RR(R"((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pyt	uninstallns
cC@s@t|tj�r|g}ntdjtdj|����S(u�
    Update one or several pecl extensions.

    pecls
        The pecl extensions to update.

    CLI Example:

    .. code-block:: bash

        salt '*' pecl.update fuse
    uinstall -U {0}u (RRRRR
RR(R"((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pytupdate�s
c@s�tjd��i}d}|r<dj|t|��}nt|�j�}�fd�|D�}xQ|D]I}�j|�}|rk|jd�|jd�g||jd�<qkqkW|S(uq
    List installed pecl extensions.

    CLI Example:

    .. code-block:: bash

        salt '*' pecl.list
    u^([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)ulistu
{0} -c {1}c3@s$|]}�j|�r|VqdS(N(tmatch(t.0tl(tpecl_channel_pat(s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pys	<genexpr>�siii(tretcompileR
RRt
splitlinesR-tgroup(R'R"RtlinestlineR-((R0s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pyR �s

2(t__doc__t
__future__RRRR1tloggingtshlexRRtImportErrortpipestsalt.utils.dataRtsalt.utils.pathtsalt.extRt__func_alias__t	getLoggert__name__RR	RR
RR*R+R,RR (((s5/usr/lib/python2.7/site-packages/salt/modules/pecl.pyt<module>s(

	5		

Zerion Mini Shell 1.0