adjust private to public by conv
This commit is contained in:
parent
f0f7ef87bd
commit
a94ac66079
2 changed files with 6 additions and 6 deletions
|
@ -13,8 +13,8 @@ class DevopsFactory:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def build_devops(self, inp: dict, version: Optional[Version] = None) -> Devops:
|
def build_devops(self, inp: dict, version: Optional[Version] = None) -> Devops:
|
||||||
build_types = self.__parse_build_types__(inp["build_types"])
|
build_types = self.parse_build_types(inp["build_types"])
|
||||||
mixin_types = self.__parse_mixin_types__(inp["mixin_types"])
|
mixin_types = self.parse_mixin_types(inp["mixin_types"])
|
||||||
|
|
||||||
specialized_builds: Dict[BuildType, Validateable] = {}
|
specialized_builds: Dict[BuildType, Validateable] = {}
|
||||||
if BuildType.IMAGE in build_types:
|
if BuildType.IMAGE in build_types:
|
||||||
|
@ -39,13 +39,13 @@ class DevopsFactory:
|
||||||
def merge(self, inp: dict, context: dict, authorization: dict) -> dict:
|
def merge(self, inp: dict, context: dict, authorization: dict) -> dict:
|
||||||
return {} | context | authorization | inp
|
return {} | context | authorization | inp
|
||||||
|
|
||||||
def __parse_build_types__(self, build_types: List[str]) -> List[BuildType]:
|
def parse_build_types(self, build_types: List[str]) -> List[BuildType]:
|
||||||
result = []
|
result = []
|
||||||
for build_type in build_types:
|
for build_type in build_types:
|
||||||
result += [BuildType[build_type]]
|
result += [BuildType[build_type]]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def __parse_mixin_types__(self, mixin_types: List[str]) -> List[MixinType]:
|
def parse_mixin_types(self, mixin_types: List[str]) -> List[MixinType]:
|
||||||
result = []
|
result = []
|
||||||
for mixin_type in mixin_types:
|
for mixin_type in mixin_types:
|
||||||
result += [MixinType[mixin_type]]
|
result += [MixinType[mixin_type]]
|
||||||
|
|
|
@ -38,10 +38,10 @@ class InitService:
|
||||||
)
|
)
|
||||||
|
|
||||||
def initialize(self, inp: dict) -> Devops:
|
def initialize(self, inp: dict) -> Devops:
|
||||||
build_types = self.devops_factory.__parse_build_types__(
|
build_types = self.devops_factory.parse_build_types(
|
||||||
inp.get("build_types", [])
|
inp.get("build_types", [])
|
||||||
)
|
)
|
||||||
mixin_types = self.devops_factory.__parse_mixin_types__(
|
mixin_types = self.devops_factory.parse_mixin_types(
|
||||||
inp.get("mixin_types", [])
|
inp.get("mixin_types", [])
|
||||||
)
|
)
|
||||||
provider_types = TerraformDomain.parse_provider_types(
|
provider_types = TerraformDomain.parse_provider_types(
|
||||||
|
|
Loading…
Reference in a new issue