Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
codedeploy
/
File Content:
install.pyc
� =��Xc @ sv d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z d e f d � � YZ d S( i����N( t BasicCommand( t validate_regiont validate_s3_locationt validate_instancet Installc B s� e Z d Z d Z i d d 6d d 6e d 6d d 6i d d 6d d 6e d 6d d 6i d d 6d d 6e d 6d d 6g Z d � Z d � Z d � Z d � Z d � Z RS( t installsM Configures and installs the AWS CodeDeploy Agent on the on-premises instance.s config-filet names --config-file <path>t synopsist requiredsB Required. The path to the on-premises instance configuration file.t help_texts override-configt store_truet actiont defaults@ Optional. Overrides the on-premises instance configuration file.s agent-installers --agent-installer <s3-location>s2 Optional. The AWS CodeDeploy Agent installer file.c C s� | } | j | _ t | | � t | � | j j � | j | � | j | � y | j | � | j | � Wn9 t k r� } t j j � t j j d j | � � n Xd S( Ns� ERROR {0} Install the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide. ( t _sessiont sessionR R t systemt validate_administratort _validate_override_configt _validate_agent_installert _create_configt _install_agentt Exceptiont syst stdoutt flusht stderrt writet format( t selft parsed_argst parsed_globalst paramst e( ( sH /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/install.pyt _run_main= s c C s5 t j j | j j � r1 | j r1 t d � � n d S( Ns� The on-premises instance configuration file already exists. Specify --override-config to update the existing on-premises instance configuration file.( t ost patht isfileR t CONFIG_PATHt override_configt RuntimeError( R R ( ( sH /tmp/pip-build-uEGWVr/awscli/awscli/customizations/codedeploy/install.pyR T s c C s� t | d � d | k r1 d j | j � | _ n d | k rg d j | j j � | _ | j j | _ n&