Skip to content

Commit

Permalink
Add get_language_activation to LanguageContainerDeployer
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Jan 5, 2024
1 parent 5458507 commit 2246841
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ def _update_previous_language_settings(self, alter_type: LanguageActivationLevel
path_in_udf, prev_lang_aliases)
return new_definitions_str

def get_language_definition(self, bucket_file_path: str):
"""
Generate a language definition (ALIAS=URL) for the specified bucket file path.
bucket_file_path - Path within the designated bucket where the container is uploaded.
"""
path_in_udf = self._bucketfs_location.generate_bucket_udf_path(bucket_file_path)
result = self._generate_new_language_settings(path_in_udf=path_in_udf, prev_lang_aliases=[])
return result

def _generate_new_language_settings(self, path_in_udf: PurePosixPath,
prev_lang_aliases: List[str]) -> str:
other_definitions = [
Expand Down

0 comments on commit 2246841

Please sign in to comment.