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

�
���^c@@s�dZddlmZmZmZddlZddlZddlj	j
Z
eje�Z
dZe
jd��Zd�Zd�Zd�Zd	�Zd
�ZdS(u
Module for apcupsd
i(tabsolute_importtprint_functiontunicode_literalsNuapcupscC@stjjjd�S(u<
    Looks to see if apcaccess is present on the system
    u	apcaccess(tsalttutilstpathtwhich(((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pyt_check_apcaccessscC@s t�r
tStdjt�fS(u7
    Provides apcupsd only if apcaccess is present
    u:{0} module can only be loaded on when apcupsd is installed(Rt__virtualname__tFalsetformat(((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pyt__virtual__s
	cC@s�i}t�}td|�}|d}|dkrCd|d<|SxE|dj�D]3}|jd�}|dj�||dj�<qTW|S(	um
    Return apcaccess output

    CLI Example:

    .. code-block:: bash

        salt '*' apcups.status
    ucmd.run_alluretcodeiu=Something with wrong executing apcaccess, is apcupsd running?uErrorustdoutu:i(Rt__salt__t
splitlinestsplittstrip(trett	apcaccesstrestretcodetline((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pytstatus*s
	

"cC@sWt�}d|krL|dj�}|dj�dkrLt|d�Snidd6S(uf
    Return load

    CLI Example:

    .. code-block:: bash

        salt '*' apcups.status_load
    uLOADPCTiupercentiuLoad not available.uError(RRtlowertfloat(tdatatload((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pytstatus_loadCs
	cC@sWt�}d|krL|dj�}|dj�dkrLt|d�Snidd6S(ur
    Return battery charge

    CLI Example:

    .. code-block:: bash

        salt '*' apcups.status_charge
    uBCHARGEiupercentiuLoad not available.uError(RRRR(Rtcharge((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pyt
status_chargeVs
	cC@s/t�}d|kr$|ddkSidd6S(u�
    Return true if running on battery power

    CLI Example:

    .. code-block:: bash

        salt '*' apcups.status_battery
    uTONBATTu	0 SecondsuBattery status not available.uError(R(R((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pytstatus_batteryis
	(t__doc__t
__future__RRRtloggingtsalt.utils.pathRtsalt.utils.decoratorsRt
decoratorst	getLoggert__name__tlogRtmemoizeRRRRRR(((s7/usr/lib/python2.7/site-packages/salt/modules/apcups.pyt<module>s				

Zerion Mini Shell 1.0