Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/utils/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/utils/plugin_docs.pyo

�
�Udac@`sddlmZmZmZeZddlmZddl	m
Zddlm
Z
mZddlmZddlmZddlmZmZmZddlmZdd	lmZdd
lmZe�Zied�d6ed�d6Zd�Z d�Z!e"e"d�Z#d�Z$dS(i(tabsolute_importtdivisiontprint_function(t	constants(t__version__(tAnsibleErrortAnsibleAssertionError(tstring_types(t	to_native(tMutableMappingt
MutableSettMutableSequence(tread_docstring(t
AnsibleLoader(tDisplayt
async_wrappertMODULEtbasetCACHEcC`s�x�|j�D]�\}}||kr�t||t�rL|j||�q�t||t�rs|j||�q�t||t�r�tt|||��}q�t	d|��n|||<q
WdS(Ns@Attempt to extend a documentation fragement, invalid type for %s(
titemst
isinstanceR	tupdateR
taddRtsortedt	frozensett	Exception(ttargettsourcetkeytvalue((s=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pytmerge_fragmentscC`s�|jdg�}t|t�r-|g}ng}x~|D]v}|}d}|j|�}|dkr�d|kr�|jdd�}	|	d}|	dj�}|j|�}n|dkr�|j|�q:nt||d�}
|
dkr|dkr
|j|�q:qd}
nt	|
d|�j
�}d|kr|jd�}|rd|krhg|d<n|dj|�qnd	|kr�|jd	�}
|
r�d	|kr�g|d	<n|d	j|
�q�nd
|kr�td||f��nd
|krWyt
|d
|jd
��Wqjtk
rS}tdt|�||f��qjXn|jd
�|d
<yt
||�Wq:tk
r�}td
t|�||f��q:Xq:W|r�tdj|tdj|�����ndS(Ntextends_documentation_fragmentt
DOCUMENTATIONt.iis{}t	file_nametnotestseealsotoptionss<missing options in fragment (%s), possibly misformatted?: %ss#%s options (%s) of unknown type: %ss%s (%s) of unknown type: %ss(unknown doc_fragment(s) in file {0}: {1}s, (tpopRRtgettNonetrsplittuppertappendtgetattrR
tget_single_datatextendRRRRtformattjoin(tdoctfilenametfragment_loadert	fragmentstunknown_fragmentst
fragment_slugt
fragment_nametfragment_vartfragment_classt	splitnamet
fragment_yamltfragmentR#R$te((s=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pyt
add_fragments+sb



	

&'cC`sdt|d|d|�}|jdt�rDt|d|d|�n|d|d|d|dfS(s�
    DOCUMENTATION can be extended using documentation fragments loaded by the PluginLoader from the doc_fragments plugins.
    tverboset
ignore_errorsR1R3t
plainexamplest
returndocstmetadata(RR'tFalseR>(R2R3R?R@tdata((s=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pyt
get_docstringwsc`sPt|�}ytjjd�}|jd�s=|d7}n|jd�rY|d}ntjd��t��dkr�t	dj
t���ndj
�d�d�}�d	jd
�rt�fd�dd
gD��st��dkrd�dkrd}qndj
|||�SWn&tk
rK}dj
|t|��SXdS(s�
    returns a versioned documentation link for the current Ansible major.minor version; used to generate
    in-product warning/error links to the configured DOCSITE_ROOT_URL
    (eg, https://docs.ansible.com/ansible/2.8/somepath/doc.html)

    :param path: relative path to a document under docs/docsite/rst;
    :return: absolute URL to the specified doc for the current version of Ansible
    tDOCSITE_ROOT_URLt/iR!isinvalid version ({0})s{0}.{1}iit0c3`s|]}|�dkVqdS(iN((t.0tpre(t	split_ver(s=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pys	<genexpr>�statbtdevtdevels
{0}{1}/{2}s7(unable to create versioned doc link for path {0}: {1})N(
RtCtconfigtget_config_valuetendswitht
startswithtansible_versiontsplittlentRuntimeErrorR/tanyR(tpathtbase_urltdoc_versiontex((RLs=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pytget_versioned_doclink�s"	

DN(R(sbase(%t
__future__RRRttypet
__metaclass__tansibleRRQtansible.releaseRRVtansible.errorsRRtansible.module_utils.sixRtansible.module_utils._textRt/ansible.module_utils.common._collections_compatR	R
Rtansible.parsing.plugin_docsRtansible.parsing.yaml.loaderR
tansible.utils.displayRtdisplayRt	BLACKLISTRR>RDRFR_(((s=/usr/lib/python2.7/site-packages/ansible/utils/plugin_docs.pyt<module>s$	
		L

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