o nnh @sddZddlmZddlZddlmZddlmZddl m Z ddl m Z ddZ Gd d d eZdS) z9 This manages remote shared Ansible objects, mainly roles) annotationsN)context)to_bytes) yaml_loadcCsVtjtjtdd}tt|ddd }t|WdS1s$wYdS)Ndatazcollections_galaxy_meta.ymlsurrogate_or_strict)errorsrb)ospathjoindirname__file__openrr) meta_path galaxy_objrB/usr/local/lib/python3.10/dist-packages/ansible/galaxy/__init__.py get_collections_galaxy_meta_info$s$rc@s4eZdZdZddZeddZddZdd Zd S) Galaxyz Keeps global galaxy info cCsntjdtj}||_i|_tj t \}}tjdd}|dkr,tj |tjd}tj |d||_ dS)N roles_path role_typedefaulttyper) rCLIARGSgetCDEFAULT_ROLES_PATH roles_pathsrolesr r splitrr DATA_PATH)selfrthis_dir this_filename type_pathrrr__init__-szGalaxy.__init__cCs|jSN)r!)r"rrrdefault_role_skeleton_path?sz!Galaxy.default_role_skeleton_pathcCs||j|j<dSr')rname)r"rolerrradd_roleCszGalaxy.add_rolecCs |j|=dSr')r)r" role_namerrr remove_roleFs zGalaxy.remove_roleN) __name__ __module__ __qualname____doc__r&propertyr(r+r-rrrrr*s  r)r1 __future__rr ansible.constants constantsransibler+ansible.module_utils.common.text.convertersr ansible.module_utils.common.yamlrrobjectrrrrrs