o
    ¡K&b×  ã                   @   sB   d dl mZ d dlmZ d dlmZ dZdZG dd„ dejƒZ	dS )	é    )ÚList)Úrepo)ÚMessagingOperationsDictzhttps://ubuntu.com/security/cisz3https://ubuntu.com/security/certifications/docs/usgc                       sb   e Zd ZeZdZdZdZdZe	de
fdd„ƒZe	dee f‡ fdd	„ƒZe	defd
d„ƒZ‡  ZS )ÚCISEntitlementÚcisz#Security compliance and audit toolszubuntu-advantage-cis.gpgTÚreturnc                 C   sF   | j dkrdd t¡giS dd t¡gi}d| jv r!ddtg|d< |S )NÚusgZpost_enablezVisit {} for the next stepsz Visit {} to learn how to use CISz6From Ubuntu 20.04 and onwards 'ua enable cis' has beenz5replaced by 'ua enable usg'. See more information at:Z
pre_enable)Ú_called_nameÚformatÚUSG_DOCS_URLÚCIS_DOCS_URLZvalid_names)ÚselfÚmessages© r   ú;/usr/lib/python3/dist-packages/uaclient/entitlements/cis.pyÚ	messaging   s   
ÿÿÿÿ
ýzCISEntitlement.messagingc                    s   | j dkrg S tƒ jS )Nr   )r	   ÚsuperÚpackages©r   ©Ú	__class__r   r   r   '   s   
zCISEntitlement.packagesc                 C   s   | j dkrdS dS )Nr   z	CIS AuditzUbuntu Security Guide)r	   r   r   r   r   Útitle-   s   
zCISEntitlement.title)Ú__name__Ú
__module__Ú__qualname__r   Zhelp_doc_urlÚnameÚdescriptionZrepo_key_fileZapt_noninteractiveÚpropertyr   r   r   Ústrr   r   Ú__classcell__r   r   r   r   r   
   s    r   N)
Útypingr   Zuaclient.entitlementsr   Zuaclient.typesr   r   r   ZRepoEntitlementr   r   r   r   r   Ú<module>   s    