| 109 | params.installer = params.key[start:] |
| 110 | |
| 111 | def _create_config(self, params): |
| 112 | sys.stdout.write( |
| 113 | 'Creating the on-premises instance configuration file... ' |
| 114 | ) |
| 115 | try: |
| 116 | os.makedirs(params.system.CONFIG_DIR) |
| 117 | except OSError as e: |
| 118 | if e.errno != errno.EEXIST: |
| 119 | raise e |
| 120 | if params.config_file != params.system.CONFIG_PATH: |
| 121 | shutil.copyfile(params.config_file, params.system.CONFIG_PATH) |
| 122 | sys.stdout.write('DONE\n') |
| 123 | |
| 124 | def _install_agent(self, params): |
| 125 | sys.stdout.write('Installing the AWS CodeDeploy Agent... ') |