cicd.core.mixin
cicd.core.mixin.core
- class cicd.core.mixin.core.CoreMixin
Bases:
LoggerMixin,GitMixin,StepMixin
cicd.core.mixin.git
cicd.core.mixin.logger
cicd.core.mixin.provider
- class cicd.core.mixin.provider.ProviderMixin
Bases:
objectA mixin that provides helpers to resolve the responsible class corresponding to the current CI provider.
In the following example,
Envis aProviderMixin. When running in Github Actions,Env’s provider is resolved toGithubEnv.>>> class Env(ProviderMixin): >>> ... >>> class GithubEnv(Env): # in cicd.providers.github.env >>> ... >>> class GitlabEnv(Env): # in cicd.providers.gitlab.env >>> ...
- Notes:
Use this mixin on the abstract class, not the concrete class.
- T = ~T
- property provider: T
Resolve the object of the corresponding provider-class.
- classmethod provider_cls()
- property provider_info: ProviderInfo
- classmethod reset_provider()