%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/pushover.pyo

�
���^c@@sVdZddlmZmZmZd�Zddddddddddd�
ZdS(u�
Send a message to PushOver
==========================

This state is useful for sending messages to PushOver during state runs.

.. versionadded:: 2015.5.0

.. code-block:: yaml

    pushover-message:
      pushover.post_message:
        - user: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        - token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        - title: Salt Returner
        - device: phone
        - priority: -1
        - expire: 3600
        - retry: 5
        - message: 'This state was executed successfully.'

The api key can be specified in the master or minion configuration like below:
.. code-block:: yaml

    pushover:
      token: peWcBiMOS9HrZG15peWcBiMOS9HrZG15

i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(uC
    Only load if the pushover module is available in __salt__
    upushover.post_messageupushover(t__salt__tFalse(((s8/usr/lib/python2.7/site-packages/salt/states/pushover.pyt__virtual__#sic
C@si|d6id6td6dd6}tdrMdj|�|d<d|d<|S|sjdj|�|d<|S|s�d	j|�|d<|Std
d|d|d
|d|d|d|d|d|
�}|r�t|d<dj|�|d<ndj|�|d<|S(u�
    Send a message to a PushOver channel.

    .. code-block:: yaml

        pushover-message:
          pushover.post_message:
            - user: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            - token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            - title: Salt Returner
            - device: phone
            - priority: -1
            - expire: 3600
            - retry: 5

    The following parameters are required:

    name
        The unique name for this event.

    user
        The user or group of users to send the message to. Must be ID of user, not name
        or email address.

    message
        The message that is to be sent to the PushOver channel.

    The following parameters are optional:

    title
        The title to use for the message.

    device
        The device for the user to send the message to.

    priority
        The priority for the message.

    expire
        The message should expire after specified amount of seconds.

    retry
        The message should be resent this many times.

    token
        The token for PushOver to use for authentication,
        if not specified in the configuration options of master or minion.

    unameuchangesuresultuucommentutestu4The following message is to be sent to PushOver: {0}uPushOver user is missing: {0}u PushOver message is missing: {0}upushover.post_messagetusertmessagettitletdevicetprioritytexpiretretryttokenuSent message: {0}uFailed to send message: {0}N(Rt__opts__tformattNoneRtTrue(
tnameRR	RRR
RRtsoundtapi_versionR
trettresult((s8/usr/lib/python2.7/site-packages/salt/states/pushover.pytpost_message*s8<




	
N(t__doc__t
__future__RRRRRR(((s8/usr/lib/python2.7/site-packages/salt/states/pushover.pyt<module>s	

Zerion Mini Shell 1.0