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

�
���^c@@s�dZddlmZmZmZddlZddlmZeje	�Z
d�Zddde
d�Zdd�Zddde
d�Zd	�ZdS(
u�
Configuration disposable regularly scheduled tasks for at.
==========================================================

The at state can be add disposable regularly scheduled tasks for your system.
i(tabsolute_importtprint_functiontunicode_literalsN(tmapcC@s
dtkS(u:
    Most everything has the ability to support at(1)
    uat.at(t__salt__(((s2/usr/lib/python2.7/site-packages/salt/states/at.pyt__virtual__sc	C@s�i|d6id6td6dd6}|s1|}ntdr_d|d<dj||�|d<|S|r�|s�t|d<d|d<|Sttd	d
|�d�dkr�d
jd
|�|d<|Sn|r;td|�}|st|d<dj|�|d<|Sdj|||�|d<td||d
|d|�}n/dj||�|d<td||d
|�}d|kr�t|d�dkr�|dd|d<nd|kr�t|d<|d|d<n|S(u�
    .. versionchanged:: 2017.7.0

    Add a job to queue.

    job : string
        Command to run.

    timespec : string
        The 'timespec' follows the format documented in the at(1) manpage.

    tag : string
        Make a tag for the job.

    user : string
        The user to run the at job
        .. versionadded:: 2014.1.4

    unique_tag : boolean
        If set to True job will not be added if a job with the tag exists.
        .. versionadded:: 2017.7.0

    .. code-block:: yaml

        rose:
          at.present:
            - job: 'echo "I love saltstack" > love'
            - timespec: '9:09 11/09/13'
            - tag: love
            - user: jam

    unameuchangesuresultuucommentutestu!job {0} added and will run on {1}u-no tag provided and unique_tag is set to Trueuat.jobcheckttagujobsiu&atleast one job with tag {tag} exists.u	user.infouuser {0} does not existsu(job {0} added and will run as {1} on {2}uat.attrunasuerrorN(tTruet__opts__tNonetformattFalsetlenR(	tnamettimespecRtusertjobt
unique_tagtrettlusertres((s2/usr/lib/python2.7/site-packages/salt/states/at.pytpresentsb!

	




#	



	"
cK@s~i|d6id6td6dd6}d|krOdj|�|d<t|d<|Stdrqd|d<d	|d<|S|r�td
|�}d|kr�t|d�dkr�t|d<d
jd|�|d<|Sd|kr�t|d�dkr�d|ddkr�|dddr�td|�}||ddk|d<|dr`djd|�|d<ndjd|�|d<|dd|dd<|Sq�t|d<djd|�|d<|Sn|rtttt	gtd|�dD]}|d^q����}td|�}ntdd�}t|dd�dkrV|dd|dd<ndjdt|dd��|d<|S(u�
    .. versionchanged:: 2017.7.0

    Remove a job from queue

    jobid: string|int
        Specific jobid to remove

    tag : string
        Job's tag

    runas : string
        Runs user-specified jobs

    kwargs
        Addition kwargs can be provided to filter jobs.
        See output of `at.jobcheck` for more.

    .. code-block:: yaml

        example1:
          at.absent:

    .. warning::
        this will remove all jobs!

    .. code-block:: yaml

        example2:
          at.absent:
            - year: 13

    .. code-block:: yaml

        example3:
          at.absent:
            - tag: rose

    .. code-block:: yaml

        example4:
          at.absent:
            - tag: rose
            - day: 13
            - hour: 16

    .. code-block:: yaml

        example5:
          at.absent:
            - jobid: 4

    .. note:
        all other filters are ignored and only job with id 4 is removed
    unameuchangesuresultuucommentulimitu!limit parameter not supported {0}utesturemoved ? job(s)uat.atqujobsiujob with id {jobid} not presenttjobidiujobuat.atrmuremovedujob with id {jobid} was removedu$failed to remove job with id {jobid}u4more than one job was return for job with id {jobid}uat.jobcheckualluremoved {count} job(s)tcountN(
RRRR	R
RR
tlistRtstr(RRtkwargsRtjobsRtjtopts((s2/usr/lib/python2.7/site-packages/salt/states/at.pytabsent�sV8





"
	
"&
		

	
@	cC@s i|d6id6td6dd6S(u
    .. versionadded:: 2017.7.0

    Add an at job if trigger by watch

    job : string
        Command to run.

    timespec : string
        The 'timespec' follows the format documented in the at(1) manpage.

    tag : string
        Make a tag for the job.

    user : string
        The user to run the at job
        .. versionadded:: 2014.1.4

    unique_tag : boolean
        If set to True job will not be added if a job with the tag exists.
        .. versionadded:: 2017.7.0

    .. code-block:: yaml

        minion_restart:
          at.watch:
            - job: 'salt-call --local service.restart salt-minion'
            - timespec: 'now +1 min'
            - tag: minion_restart
            - unique_tag: trye
            - watch:
                - file: /etc/salt/minion

    unameuchangesuresultuucomment(R(RRRRRR((s2/usr/lib/python2.7/site-packages/salt/states/at.pytwatch�s
#cK@smi|d6id6td6dd6}|ddkrixddgD]
}||=q?W||d<t|�}n|S(	uW
    The at watcher, called to invoke the watch command.

    .. note::
        This state exists to support special handling of the ``watch``
        :ref:`requisite <requisites>`. It should not be called directly.

        Parameters for this function should be set by the state being triggered.

    name
        The name of the atjob

    unameuchangesuresultuucommentusfunuwatchu__reqs__(RR(RRRtp((s2/usr/lib/python2.7/site-packages/salt/states/at.pyt	mod_watch#s


(t__doc__t
__future__RRRtloggingtsalt.ext.six.movesRt	getLoggert__name__tlogRR
RRRR R"(((s2/usr/lib/python2.7/site-packages/salt/states/at.pyt<module>s	fx+

Zerion Mini Shell 1.0