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

�
���^c@@s�dZddlmZmZmZddlZddlZeje	�Z
dZd�Zddd�Zdd�Zdd	�ZdS(
u
Set defaults on Mac OS

i(tabsolute_importtunicode_literalstprint_functionNumacdefaultscC@stjjj�rtStS(u
    Only work on Mac OS
    (tsalttutilstplatformt	is_darwint__virtualname__tFalse(((s</usr/lib/python2.7/site-packages/salt/modules/macdefaults.pyt__virtual__sustringcC@sq|dks|dkrE|tkr-d}qE|tkrEd}qEndj||||�}td|d|�S(un
    Write a default to the system

    CLI Example:

    .. code-block:: bash

        salt '*' macdefaults.write com.apple.CrashReporter DialogType Server

        salt '*' macdefaults.write NSGlobalDomain ApplePersistence True type=bool

    domain
        The name of the domain to write to

    key
        The key of the given domain to write to

    value
        The value to write to the given key

    type
        The type of value to be written, valid types are string, data, int[eger],
        float, bool[ean], date, array, array-add, dict, dict-add

    user
        The user to write the defaults to


    uboolubooleanuTRUEuFALSEu%defaults write "{0}" "{1}" -{2} "{3}"ucmd.run_alltrunas(tTrueRtformatt__salt__(tdomaintkeytvaluettypetusertcmd((s</usr/lib/python2.7/site-packages/salt/modules/macdefaults.pytwrites	cC@s&dj||�}td|d|�S(u�
    Write a default to the system

    CLI Example:

    .. code-block:: bash

        salt '*' macdefaults.read com.apple.CrashReporter DialogType

        salt '*' macdefaults.read NSGlobalDomain ApplePersistence

    domain
        The name of the domain to read from

    key
        The key of the given domain to read from

    user
        The user to write the defaults to

    udefaults read "{0}" "{1}"ucmd.runR
(RR
(RRRR((s</usr/lib/python2.7/site-packages/salt/modules/macdefaults.pytreadCscC@s,dj||�}td|d|dd�S(u�
    Delete a default from the system

    CLI Example:

    .. code-block:: bash

        salt '*' macdefaults.delete com.apple.CrashReporter DialogType

        salt '*' macdefaults.delete NSGlobalDomain ApplePersistence

    domain
        The name of the domain to delete from

    key
        The key of the given domain to delete

    user
        The user to delete the defaults with

    udefaults delete "{0}" "{1}"ucmd.run_allR
toutput_logleveludebug(RR
(RRRR((s</usr/lib/python2.7/site-packages/salt/modules/macdefaults.pytdelete]s(t__doc__t
__future__RRRtloggingtsalt.utils.platformRt	getLoggert__name__tlogRR	tNoneRRR(((s</usr/lib/python2.7/site-packages/salt/modules/macdefaults.pyt<module>s		(

Zerion Mini Shell 1.0