improve docstring
This commit is contained in:
parent
d196d2a1e4
commit
704af5b32c
1 changed files with 4 additions and 2 deletions
|
|
@ -93,8 +93,10 @@ class EnvManager:
|
||||||
)
|
)
|
||||||
|
|
||||||
def copy_env_files(self, DIR: DirManager) -> None:
|
def copy_env_files(self, DIR: DirManager) -> None:
|
||||||
"""Copies all env files to STATES/env_files. Files will be renamed to their own TYPE value."""
|
"""Copies all env files to STATES/env_files. Files will be renamed to
|
||||||
|
<index>-<env_type>-<original_name>
|
||||||
|
00-authentik-login.test.dev.local-it.cloud.env"""
|
||||||
|
|
||||||
for index, env_file in enumerate(self.env_files):
|
for index, env_file in enumerate(self.env_files):
|
||||||
# will create something like 00-authentik-login.test.dev.local-it.cloud.env
|
|
||||||
file_name = "-".join([str(index).zfill(2), env_file.env_type, env_file.env_path.name])
|
file_name = "-".join([str(index).zfill(2), env_file.env_type, env_file.env_path.name])
|
||||||
shutil.copy(env_file.env_path, DIR.ENV_FILES / file_name)
|
shutil.copy(env_file.env_path, DIR.ENV_FILES / file_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue