Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zdd
l	m
Z
ddlmZddl
mZd
Zddd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: grove
version_added: 1.4
short_description: Sends a notification to a grove.io channel
description:
     - The C(grove) module sends a message for a service to a Grove.io
       channel.
options:
  channel_token:
    description:
      - Token of the channel to post to.
    required: true
  service:
    description:
      - Name of the service (displayed as the "user" in the message)
    required: false
    default: ansible
  message:
    description:
      - Message content
    required: true
  url:
    description:
      - Service URL for the web client
    required: false
  icon_url:
    description:
      -  Icon for the service
    required: false
  validate_certs:
    description:
      - If C(no), SSL certificates will not be validated. This should only be used
        on personally controlled sites using self-signed certificates.
    default: 'yes'
    type: bool
    version_added: 1.5.1
author: "Jonas Pfenniger (@zimbatm)"
st
- grove: >
    channel_token=6Ph62VBBJOccmtTPZbubiPzdrhipZXtg
    service=my-app
    message=deployed {{ target }}
(t
AnsibleModule(t	urlencode(t	fetch_urlshttps://grove.io/api/notice/%s/cC`s�t|f}td|d|�}|dk	r;||d<n|dk	rT||d<nt|�}t||d|�\}	}
|
ddkr�|jdd	|
d�ndS(
Ntservicetmessageturlticon_urltdataRi�tmsgsfailed to send notification: %s(tBASE_URLtdicttNoneR	R
t	fail_json(tmodulet
channel_tokenRRR
Rtmy_urltmy_dataRtresponsetinfo((sF/usr/lib/python2.7/site-packages/ansible/modules/notification/grove.pytdo_notify_groveJs


cC`stdtdtdddtdt�dtdddt�dtddd	d
�dtddd	d�dtddd	d�d
td	ddd���}|jd}|jd}|jd}|jd}|jd}t||||||�|jdd�dS(Nt
argument_specRttypetstrtrequiredtno_logRRtdefaulttansibleR
Rtvalidate_certstyestboolRtOK(RRtTrueRtparamsRt	exit_json(RRRRR
R((sF/usr/lib/python2.7/site-packages/ansible/modules/notification/grove.pytmain\s




t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStansible.module_utils.basicRt+ansible.module_utils.six.moves.urllib.parseR	tansible.module_utils.urlsR
RRRR*t__name__(((sF/usr/lib/python2.7/site-packages/ansible/modules/notification/grove.pyt<module>s


)	

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