Class DeployerCommon
Common realization of IDeployer
Inheritance
object
DeployerCommon
Implements
Namespace: BuildSystem.ProjectList.Helpers
Assembly: BuildSystem.ProjectList.dll
Syntax
public class DeployerCommon : Object, IDeployer
Constructors
DeployerCommon(ILogger?, IDeployerProps, string)
Common realization of ICompiler
Declaration
public DeployerCommon(ILogger? logger, IDeployerProps props, string tempDir)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | |
IDeployerProps | props | |
string | tempDir |
Properties
Props
Properties
Declaration
public IDeployerProps Props { get; }
Property Value
Type | Description |
---|---|
IDeployerProps |
Methods
GetDeployQueue(List<IProject>, ProjectFilter?)
Analyze projects and dependencies between them. Return queue of projects, which should be deployed
Declaration
public Queue<IProject> GetDeployQueue(List<IProject> projects, ProjectFilter? filter = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<><IProject> | projects | |
ProjectFilter | filter |
Returns
Type | Description |
---|---|
System.Collections.Generic.Queue<><IProject> |
GetDeployReason(IPackageProps, IPackageManager, IVersionManager)
Returns flag - package should be deployed
Declaration
public string? GetDeployReason(IPackageProps packageProps, IPackageManager packageManager, IVersionManager versionManager)
Parameters
Type | Name | Description |
---|---|---|
IPackageProps | packageProps | |
IPackageManager | packageManager | |
IVersionManager | versionManager |
Returns
Type | Description |
---|---|
string |
GetProjectsToRebuild(IEnumerable<IProject>)
Get list of projects, which should be rebuild before deploying. Project should be rebuild, if:
- It meets requirements in RebuildOnDeployProjects
- It has dependencies, which meet requirements in RebuildOnDeployProjects
Declaration
public List<IProject> GetProjectsToRebuild(IEnumerable<IProject> projects)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<><IProject> | projects |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><IProject> |