HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/boto/pyami/__pycache__/scriptbase.cpython-310.pyc
o

ckF[��@sDddlZddlZddlmZmZddlZddlZGdd�de�ZdS)�N)�ShellCommand�get_tsc@sBeZdZddd�Zddd�Zdd�Zd	d
�Zdd
d�Zdd�ZdS)�
ScriptBaseNcCs<tj�ddd�|_|jj|_t�|_|rtj�	|�dSdS)N�Instancezinstance-id�default)
�boto�config�get�instance_id�	__class__�__name__�namer�ts�read)�self�config_file�r�7/usr/lib/python3/dist-packages/boto/pyami/scriptbase.py�__init__	s
�zScriptBase.__init__�cCstj�||�dS�N)r�utils�notify)r�subject�bodyrrrrszScriptBase.notifycCs>tj�|�szt�|�WdStj�d|�YdSdS)NzError creating directory: %s)�os�path�isdir�mkdirr�log�error�rrrrrrs�zScriptBase.mkdircCs"tj�|�r|�d|�dSdS)Nz	umount %s)rr�ismount�runr!rrr�umounts�zScriptBase.umountTFcCsdt||d�|_|jjdkr.tj�d||jjf�|r'|�dd||jjf�|r.t�	d�|jjS)N)�cwdrz)Error running command: "%s". Output: "%s"zError encounteredz=Error running the following command:
	%s

Command output:
	%s���)
r�last_command�statusrrr �outputr�sys�exit)r�commandr�
exit_on_errorr%rrrr#s
��
zScriptBase.runcCsdSrr)rrrr�main*szScriptBase.mainr)r)TFN)	r�
__module__�__qualname__rrrr$r#r.rrrrrs


r)rr*�
boto.utilsrrr�objectrrrrr�<module>s