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

�
���^c@@s~dZddlmZmZmZddlZddlZidd6ZdZ	d�Z
d�Zd	�Zd
�Z
d�ZdS(u�
Interface to Red Hat tuned-adm module

:maintainer:    Syed Ali <alicsyed@gmail.com>
:maturity:      new
:depends:       tuned-adm
:platform:      Linux
i(tabsolute_importtunicode_literalstprint_functionNulistulist_utunedcC@s)tjjjd�}|s%tdfStS(uF
    Check to see if tuned-adm binary is installed on the system

    u	tuned-admuSThe tuned execution module failed to load: the tuned-adm binary is not in the path.(tsalttutilstpathtwhichtFalset__virtualname__(t	tuned_adm((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pyt__virtual__s
cC@s]tdd�j�}|jd�|j�g|D]}|jd�dj�^q4}|S(un
    List the profiles available

    CLI Example:

    .. code-block:: bash

        salt '*' tuned.list
    ucmd.runutuned-adm listiu- i(t__salt__t
splitlinestpoptsplittstrip(tresultti((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pytlist_$s


,cC@sGtdd�}tjd�}tj||�}dj|jd��S(ur
    Return current active profile

    CLI Example:

    .. code-block:: bash

        salt '*' tuned.active
    ucmd.runutuned-adm activeu4(?P<stmt>Current active profile:) (?P<profile>\w+.*)u{0}uprofile(Rtretcompiletmatchtformattgroup(RtpatternR((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pytactive:scC@s*tdd�}t|�dkr&tStS(ug
    Turn off all profiles

    CLI Example:

    .. code-block:: bash

        salt '*' tuned.off
    ucmd.retcodeu
tuned-adm offi(RtintRtTrue(R((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pytoffLscC@s<tddj|��}t|�dkr/tSdj|�S(u~
    Activate specified profile

    CLI Example:

    .. code-block:: bash

        salt '*' tuned.profile virtual-guest
    ucmd.retcodeutuned-adm profile {0}iu{0}(RRRR(tprofile_nameR((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pytprofile^s(t__doc__t
__future__RRRRtsalt.utils.pathRt__func_alias__RR
RRRR(((s6/usr/lib/python2.7/site-packages/salt/modules/tuned.pyt<module>	s
				

Zerion Mini Shell 1.0