in hooks/post_gen_project.py [0:0]
def copy_files_to(path):
filenames = ["buildspec.yaml", "pipeline.yaml",
"Pipeline-Instructions.md", "pipeline.png"]
buildspec_exists = os.path.join(path, 'buildspec.yaml')
# Don't override buildspec if one exists in the current folder
if os.path.isfile(buildspec_exists):
filenames.pop(0)
print(INFO + "Ignoring buildspec.yaml copy as one already exists" +
TERMINATOR)
for file in filenames:
if os.path.isfile(file):
print(INFO + "Copying {} to current directory...".format(file) +
TERMINATOR)
shutil.copy(file, path)
return True