+
    ˜qgj‡  ã                   ó~   € R t ^ RIt^ RIt^<t^
tRt]P                  ! 4       R8X  d   Rt ! R R4      t ! R R4      tR# )	a  
cepko implements easy-to-use communication with CloudSigma's VMs through
a virtual serial port without bothering with formatting the messages
properly nor parsing the output with the specific and sometimes
confusing shell tools for that purpose.

Having the server definition accessible by the VM can ve useful in various
ways. For example it is possible to easily determine from within the VM,
which network interfaces are connected to public and which to private network.
Another use is to pass some data to initial VM setup scripts, like setting the
hostname to the VM name or passing SSH public keys through server meta.

For more information take a look at the Server Context section of CloudSigma
API Docs: http://cloudsigma-docs.readthedocs.org/en/latest/server_context.html
Nz
/dev/ttyS1ÚWindowsÚCOM2c                   óB   a € ] tR t^"t o RtRtRR ltR tR	R ltRt	V t
R# )
ÚCepkozV
One instance of that object could be use for one or more
queries to the serial port.
z<
{}
>Nc                óV   € Vf   V P                   p\        VP                  V4      4      # ©N)Úrequest_patternÚCepkoResultÚformat©ÚselfÚkeyr   s   &&&ÚF/usr/lib/python3/dist-packages/cloudinit/sources/helpers/cloudsigma.pyÚgetÚ	Cepko.get*   s)   € ØÒ"Ø"×2Ñ2ˆOÜ˜?×1Ñ1°#Ó6Ó7Ð7ó    c                ó"   € V P                  4       # r   )r   ©r   s   &r   ÚallÚ	Cepko.all/   s   € Ø�x‰x‹zÐr   c                óZ   € V P                   P                  R 4      pV P                  W4      # )z/meta/{})r   r
   r   r   s   && r   ÚmetaÚ
Cepko.meta2   s'   € Ø×.Ñ.×5Ñ5°jÓAˆØ�x‰x˜Ó-Ð-r   © )Ú N)r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   "   s%   ø‡ € ñð
 !€Oô8ò
÷.ò .r   r   c                   óN   a € ] tR t^7t o RtR tR tR tR tR t	R t
R tR	tV tR
# )r	   z�
CepkoResult executes the request to the virtual serial port as soon
as the instance is initialized and stores the result in both raw and
marshalled format.
c                ó|   € Wn         V P                  4       V n        V P                  V P                  4      V n        R # r   )ÚrequestÚ_executeÚ
raw_resultÚ_marshalÚresult)r   r&   s   &&r   Ú__init__ÚCepkoResult.__init__>   s(   € ØŒØŸ-™-›/ˆŒØ—m‘m D§O¡OÓ4ˆŽr   c                ó:  €  ^ RI pTP                  \        \
        \        R7      pTP                  T P                  P                  R4      4       TP                  4       P                  R4      P                  R4      #   \         d   p\        R4      ThRp?ii ; i)é    Nzserial support is not available)ÚportÚtimeoutÚwriteTimeoutÚasciis   
)ÚserialÚImportErrorÚNotImplementedErrorÚSerialÚSERIAL_PORTÚREAD_TIMEOUTÚWRITE_TIMEOUTÚwriter&   ÚencodeÚreadlineÚstripÚdecode)r   r3   ÚeÚ
connections   &   r   r'   ÚCepkoResult._executeC   s�   € ð	PÛð —]‘]Ü¤lÄð #ó 
ˆ
ð 	×Ñ˜Ÿ™×,Ñ,¨WÓ5Ô6Ø×"Ñ"Ó$×*Ñ*¨9Ó5×<Ñ<¸WÓEÐEøô ô 	PÜ%Ð&GÓHÈaÐOûð	Pús   ‚A> Á>BÂ	BÂBc                óV   €  \         P                  ! V4      #   \         d    Tu # i ; ir   )ÚjsonÚloadsÚ
ValueError)r   r(   s   &&r   r)   ÚCepkoResult._marshalO   s+   € ð	Ü—:’:˜jÓ)Ð)øÜô 	ØÒð	ús   ‚ ˜(§(c                ó6   € V P                   P                  4       # r   )r*   Ú__len__r   s   &r   rH   ÚCepkoResult.__len__U   s   € Ø�{‰{×"Ñ"Ó$Ð$r   c                ó8   € V P                   P                  V4      # r   )r*   Ú__getitem__)r   r   s   &&r   rK   ÚCepkoResult.__getitem__X   s   € Ø�{‰{×&Ñ& sÓ+Ð+r   c                ó8   € V P                   P                  V4      # r   )r*   Ú__contains__)r   Úitems   &&r   rN   ÚCepkoResult.__contains__[   s   € Ø�{‰{×'Ñ'¨Ó-Ð-r   c                ó6   € V P                   P                  4       # r   )r*   Ú__iter__r   s   &r   rR   ÚCepkoResult.__iter__^   s   € Ø�{‰{×#Ñ#Ó%Ð%r   )r(   r&   r*   N)r   r   r   r   r   r+   r'   r)   rH   rK   rN   rR   r    r!   r"   s   @r   r	   r	   7   s3   ø‡ € ñò5ò

Fòò%ò,ò.÷&ð &r   r	   )	r   rC   Úplatformr8   r9   r7   Úsystemr   r	   r   r   r   Ú<module>rV      sK   ðñó Û ð €Ø€à€Ø‡?‚?Ó˜	Ô!Ø€K÷.ñ .÷*(&ó (&r   