%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/znc.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddl	Z	ddl
Z
ddlZddl
mZeje�Zd�Zdd�Zd�Zd	�Zd
�Zd�ZdS(um
znc - An advanced IRC bouncer

.. versionadded:: 2014.7.0

Provides an interface to basic ZNC functionality
i(tabsolute_importtprint_functiontunicode_literalsN(trangecC@s#tjjjd�rdStdfS(u2
    Only load the module if znc is installed
    uzncu Module znc: znc binary not found(tsalttutilstpathtwhichtFalse(((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pyt__virtual__susha256c@s�|dkrtj|�}n"|dkr<tj|�}ntSd�i|jd6dj�fd�td�D��d6}|j|d�|j�|d	<|S(
u1
    Create a znc compatible hashed password
    usha256umd5uKabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!?.,:;/*-+_()uMethoduc3@s$|]}tj�j��VqdS(N(trandomtSystemRandomtchoice(t.0tx(tc(s4/usr/lib/python2.7/site-packages/salt/modules/znc.pys	<genexpr>3siuSaltuHash(	thashlibtsha256tmd5tNotImplementedtnametjoinRtupdatet	hexdigest(tpasswordthasherthtr((Rs4/usr/lib/python2.7/site-packages/salt/modules/znc.pyt	_makepass"s
)cG@s�g|D]}tjj|�s|^q}|rGdjdj|��Sdg}|j|�td|dt�j�}|dS(u�
    Build module using znc-buildmod

    CLI Example:

    .. code-block:: bash

        salt '*' znc.buildmod module.cpp [...]
    u%Error: The file ({0}) does not exist.u, uznc-buildmoducmd.runtpython_shelli����(	tosRtexiststformatRtextendt__salt__Rt
splitlines(tmodulestmoduletmissingtcmdtout((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pytbuildmod=s+	
cC@stdddtj�S(u�
    Write the active configuration state to config file

    CLI Example:

    .. code-block:: bash

        salt '*' znc.dumpconf
    ups.pkilluznctsignal(R"R*tSIGUSR1(((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pytdumpconfRs
cC@stdddtj�S(u�
    Rehash the active configuration state from config file

    CLI Example:

    .. code-block:: bash

        salt '*' znc.rehashconf
    ups.pkilluzncR*(R"R*tSIGHUP(((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pyt
rehashconf_s
cC@sCddg}td|dt�j�}|djd�}|dS(u|
    Return server version from znc --version

    CLI Example:

    .. code-block:: bash

        salt '*' znc.version
    uzncu	--versionucmd.runRiu - (R"RR#tsplit(R'R(tret((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pytversionls
(t__doc__t
__future__RRRRtloggingtos.pathRR
R*tsalt.utils.pathRtsalt.ext.six.movesRt	getLoggert__name__tlogR	RR)R,R.R1(((s4/usr/lib/python2.7/site-packages/salt/modules/znc.pyt<module>s				
	

Zerion Mini Shell 1.0