remove unused
This commit is contained in:
parent
76fd45e2dd
commit
2a4b1880af
1 changed files with 0 additions and 28 deletions
|
@ -1,28 +0,0 @@
|
|||
from pathlib import Path
|
||||
from .common import Devops, MixinType
|
||||
from .devops_factory import DevopsFactory
|
||||
from .version import Version
|
||||
from ..infrastructure import (
|
||||
GopassApi, EnvironmentApi
|
||||
)
|
||||
|
||||
class CredentialsService:
|
||||
def __init__(self, gopass_api, environment_api):
|
||||
|
||||
@classmethod
|
||||
def prod(cls):
|
||||
return cls(
|
||||
GopassApi(),
|
||||
EnvironmentApi()
|
||||
)
|
||||
|
||||
def initialize(self, input: dict) -> Devops:
|
||||
mixin_types = self.devops_factory.__parse_mixin_types__(input["mixin_types"])
|
||||
version = None
|
||||
|
||||
if MixinType.RELEASE in mixin_types:
|
||||
primary_build_file_id = input.get("release_primary_build_file", "./project.clj")
|
||||
primary_build_file = self.build_file_repository.get(Path(primary_build_file_id))
|
||||
version = primary_build_file.get_version()
|
||||
|
||||
return self.devops_factory.build_devops(input, version=version)
|
Loading…
Reference in a new issue