Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/plugins/callback/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pyc

�
�Udac@`s�ddlmZmZmZeZdZddlZddl	Z	ddl
Z
ddlZddlm
Z
de
fd��YZdS(i(tabsolute_importtdivisiontprint_functions�
    callback: say
    type: notification
    requirements:
      - whitelisting in configuration
      - the '/usr/bin/say' command line program (standard on macOS) or 'espeak' command line program
    short_description: notify using software speech synthesizer
    version_added: historical
    description:
      - This plugin will use the 'say' or 'espeak' program to "speak" about play events.
    notes:
      - In 2.8, this callback has been renamed from C(osx_say) into M(say).
N(tCallbackBasetCallbackModulecB`s�eZdZdZdZdZeZd�Zd�Z	e
d�Zd�Zdd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�ZRS(s+
    makes Ansible much more exciting.
    g@tnotificationtsaycC`s tt|�j�d|_d|_d|_d|_tj	j
d�|_|js�tj	j
d�|_|jr�d|_d|_d|_q�nStj
�dkr�|jjdtj
��n$d|_d	|_d
|_d|_|jst|_|jjdtjjt��ndS(
NRtespeaktklatttf5twhispertDarwinsC'say' executable found but system is '%s': ignoring voice parametertZarvoxtTrinoidstCellostPrincesssFUnable to find either 'say' or 'espeak' executable, plugin %s disabled(tsuperRt__init__tNonetFAILED_VOICEt
REGULAR_VOICEtHAPPY_VOICEtLASER_VOICEt	distutilstspawntfind_executabletsynthesizertplatformtsystemt_displaytwarningtTruetdisabledtostpathtbasenamet__file__(tself((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pyR(s*														cC`s<|j|g}|r+|jd|f�ntj|�dS(Ns-v(Rtextendt
subprocesstcall(R%tmsgtvoicetcmd((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pyRGscC`s|jd||j�dS(NsFailure on host %s(RR(R%thosttrest
ignore_errors((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_failedMscC`s|jd|j�dS(Ntpew(RR(R%R,R-((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_okPscC`s|jd|j�dS(NR0(RR(R%R,titem((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_skippedSscC`s|jd||j�dS(NsFailure on host %s(RR(R%R,R-((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_unreachableVscC`s|jd|j�dS(NR0(RR(R%R,R-tjid((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_async_okYscC`s|jd||j�dS(NsFailure on host %s(RR(R%R,R-R5((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytrunner_on_async_failed\scC`s|jd|j�dS(NsRunning Playbook(RR(R%((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_start_scC`s|jd|j�dS(NR0(RR(R%R,thandler((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_notifybscC`s;|s |jd||j�n|jd||j�dS(NsStarting task: %ssNotifying task: %s(RR(R%tnametis_conditional((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_task_startescC`s|jd|j�dS(NsGathering facts(RR(R%((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_setupkscC`s|jd||j�dS(NsStarting play: %s(RR(R%R;((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_play_startnscC`s|jd|j�dS(Ns
Play complete(RR(R%tstats((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pytplaybook_on_statsqsN(t__name__t
__module__t__doc__tCALLBACK_VERSIONt
CALLBACK_TYPEt
CALLBACK_NAMERtCALLBACK_NEEDS_WHITELISTRRtFalseR/R1RR3R4R6R7R8R:R=R>R?RA(((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pyRs&											(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONtdistutils.spawnRRR'R!tansible.plugins.callbackRR(((sD/usr/lib/python2.7/site-packages/ansible/plugins/callback/osx_say.pyt<module>s

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]