%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/travisci.pyc

�
���^c@@s�dZddlmZmZmZddlZy"ddlZddlZeZ	Wne
k
rieZ	nXddlZ
ddlmZddlmZddlmZdZdZd	�Zd
�ZdS(uD
Commands for working with travisci.

:depends: pyOpenSSL >= 16.0.0
i(tabsolute_importtunicode_literalstprint_functionN(tLooseVersion(tparse_qs(tsixu16.0.0utraviscicC@s]ttkrtdjt�fSttj�}tt�}||krYtdjt�fStS(NuEThe travisci module was unable to be loaded: Install pyOpenssl >= {0}(tHAS_OPENSSLtFalsetformattOPENSSL_MIN_VERt
_LooseVersiontOpenSSLt__version__t__virtualname__(tcur_versiontmin_version((s9/usr/lib/python2.7/site-packages/salt/modules/travisci.pyt__virtual__ scC@s�tdd�dddd}tjjtjj|�}tjj�}|j|�tj|�}t	j
jjt
|�dd�}y&tjj|||tjd	��Wntjjk
r�tSXtS(
u�
    Verify the webhook signature from travisci

    signature
        The signature header from the webhook header

    body
        The full payload body from the webhook post

    .. note:: The body needs to be the urlencoded version of the body.

    CLI Example:

    .. code-block:: bash

        salt '*' travisci.verify_webhook 'M6NucCX5722bxisQs7e...' 'payload=%7B%22id%22%3A183791261%2C%22repository...'

    u
http.queryu https://api.travis-ci.org/configuconfigu
notificationsuwebhooku
public_keyupayloadiusha1(t	__utils__Rtcryptotload_publickeytFILETYPE_PEMtX509t
set_pubkeytbase64t	b64decodetsalttutilstjsontloadsRtverifyRt	text_typetErrorRtTrue(t	signaturetbodyt
public_keytpkey_public_keytcertificatetpayload((s9/usr/lib/python2.7/site-packages/salt/modules/travisci.pytverify_webhook*s 
#&(t__doc__t
__future__RRRRRtOpenSSL.cryptoR RtImportErrorRtsalt.utils.jsonRtsalt.utils.versionsRR
tsalt.ext.six.moves.urllib.parseRtsalt.extRR	R
RR'(((s9/usr/lib/python2.7/site-packages/salt/modules/travisci.pyt<module>s 


	

Zerion Mini Shell 1.0