%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/locate.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZeje	�Z
d�Zd�Zd�Z
d�Zddd	�ZdS(
u'
Module for using the locate utilities
i(tabsolute_importtprint_functiontunicode_literalsNcC@s tjjj�rtdfStS(u)
    Only work on POSIX-like systems
    uTThe locate execution module cannot be loaded: only available on non-Windows systems.(tsalttutilstplatformt
is_windowstFalsetTrue(((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pyt__virtual__scC@s d}td|�j�}|S(ut
    Returns the version of locate

    CLI Example:

    .. code-block:: bash

        salt '*' locate.version
    u	locate -Vucmd.run(t__salt__t
splitlines(tcmdtout((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pytversions
cC@s�i}d}td|�j�}xj|D]b}|j�j�}|jd�rp|djdd�|d<q)n|d|d	j|d�<q)W|S(
u�
    Returns statistics about the locate database

    CLI Example:

    .. code-block:: bash

        salt '*' locate.stats
    u	locate -Sucmd.runuDatabaseiu:uudatabaseiu (R
Rtstriptsplitt
startswithtreplacetjoin(tretRR
tlinetcomps((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pytstats,s

cC@s d}td|�j�}|S(us
    Updates the locate database

    CLI Example:

    .. code-block:: bash

        salt '*' locate.updatedb
    uupdatedbucmd.run(R
R(RR
((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pytupdatedbBs
uc	K@s8d}idd6dd6dd6dd	6d
d6dd
6dd6}xA|D]9}t||�tkrD||krD|||7}qDqDW|r�dj|�}n|r�|dj|�7}n|dkr�|dj|�7}nd|krt|d�tkr|d7}ndj||�}td|dt�j�}|S(u�
    Performs a file lookup. Valid options (and their defaults) are::

        basename=False
        count=False
        existing=False
        follow=True
        ignore=False
        nofollow=False
        wholename=True
        regex=False
        database=<locate's default database>
        limit=<integer, not set by default>

    See the manpage for ``locate(1)`` for further explanation of these options.

    CLI Example:

    .. code-block:: bash

        salt '*' locate.locate
    uububasenameucucountueuexistinguLufollowuiuignoreuPunofollowuwu	wholenameu-{0}u -d {0}iu -l {0}uregexu --regexulocate {0} {1}ucmd.runtpython_shell(tboolRtformatR
RR(	tpatterntdatabasetlimittkwargstoptionsttogglestoptionRR
((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pytlocateQs.

""
(t__doc__t
__future__RRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogR	RRRR#(((s7/usr/lib/python2.7/site-packages/salt/modules/locate.pyt<module>s	
			

Zerion Mini Shell 1.0