Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/notification/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/notification/campfire.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zdd
l	Z	ddl
mZddlm
Z
d
�Zedkr�e�nd
S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys'
---
module: campfire
version_added: "1.2"
short_description: Send a message to Campfire
description:
   - Send a message to Campfire.
   - Messages with newlines will result in a "Paste" message being sent.
options:
  subscription:
    description:
      - The subscription name to use.
    required: true
  token:
    description:
      - API token.
    required: true
  room:
    description:
      - Room number to which the message should be sent.
    required: true
  msg:
    description:
      - The message body.
    required: true
  notify:
    description:
      - Send a notification sound before the message.
    required: false
    choices: ["56k", "bell", "bezos", "bueller", "clowntown",
              "cottoneyejoe", "crickets", "dadgummit", "dangerzone",
              "danielsan", "deeper", "drama", "greatjob", "greyjoy",
              "guarantee", "heygirl", "horn", "horror",
              "inconceivable", "live", "loggins", "makeitso", "noooo",
              "nyan", "ohmy", "ohyeah", "pushit", "rimshot",
              "rollout", "rumble", "sax", "secret", "sexyback",
              "story", "tada", "tmyk", "trololo", "trombone", "unix",
              "vuvuzela", "what", "whoomp", "yeah", "yodel"]

# informational: requirements for nodes
requirements: [ ]
author: "Adam Garside (@fabulops)"
s�
- campfire:
    subscription: foo
    token: 12345
    room: 123
    msg: Task completed.

- campfire:
    subscription: foo
    token: 12345
    room: 123
    notify: loggins
    msg: Task completed ... with feeling.
N(t
AnsibleModule(t	fetch_urlc<C`s{tdtdtdt�dtdtdt�dtdt�dtdt�dtdtd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5g,��d6t�}|jd}|jd}|jd}|jd}|jd}d7|}d8}d9}d:}	||jd;<d<|jd=<d>||f}
id?d@6|	dA6}|r�t||
dB|tj|�dC|�\}}
|
dDdIkr�|jddG||
dDf�q�nt||
dB|tj|�dC|�\}}
|
dDdJkrU|jddG||
dDf�n|j	dHtd|d|d|�dS(KNt
argument_spectsubscriptiontrequiredttokentno_logtroomtmsgtnotifytchoicest56ktbelltbezostbuellert	clowntowntcottoneyejoetcricketst	dadgummitt
dangerzonet	danielsantdeepertdramatgreatjobtgreyjoyt	guaranteetheygirlthornthorrort
inconceivabletlivetlogginstmakeitsotnooootnyantohmytohyeahtpushittrimshottrollouttrumbletsaxtsecrettsexybacktstoryttadattmykttrololottrombonetunixtvuvuzelatwhattwhoomptyeahtyodeltsupports_check_modeshttps://%s.campfirenow.coms;<message><type>SoundMessage</type><body>%s</body></message>s"<message><body>%s</body></message>sAnsible/1.2turl_usernametXturl_passwords%s/room/%s/speak.xmlsapplication/xmlsContent-Types
User-agenttdatatheadersRi�i�s@unable to send msg: '%s', campfire api returned error code: '%s'tchanged(i�i�(i�i�(
RtdicttTruetFalsetparamsR	tcgitescapet	fail_jsont	exit_json(tmoduleRR
RRRtURItNSTRtMSTRtAGENTt
target_urlRDtresponsetinfo((sI/usr/lib/python2.7/site-packages/ansible/modules/notification/campfire.pytmainQs\								









..t__main__(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLESRJtansible.module_utils.basicRtansible.module_utils.urlsR	RVt__name__(((sI/usr/lib/python2.7/site-packages/ansible/modules/notification/campfire.pyt<module>s


-	@

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