-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPhase.cs
More file actions
25 lines (23 loc) · 1.23 KB
/
Copy pathPhase.cs
File metadata and controls
25 lines (23 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Collections.Generic;
using System.Linq;
namespace OctopusProjectBuilder.Model
{
public class Phase
{
public ElementIdentifier Identifier { get; }
public RetentionPolicy ReleaseRetentionPolicy { get; }
public RetentionPolicy TentacleRetentionPolicy { get; }
public int MinimumEnvironmentsBeforePromotion { get; }
public IEnumerable<ElementReference> AutomaticDeploymentTargetRefs { get; }
public IEnumerable<ElementReference> OptionalDeploymentTargetRefs { get; }
public Phase(ElementIdentifier identifier, RetentionPolicy releaseRetentionPolicy, RetentionPolicy tentacleRetentionPolicy, int minimumEnvironmentsBeforePromotion, IEnumerable<ElementReference> automaticDeploymentTargets, IEnumerable<ElementReference> optionalDeploymentTargets)
{
Identifier = identifier;
ReleaseRetentionPolicy = releaseRetentionPolicy;
TentacleRetentionPolicy = tentacleRetentionPolicy;
MinimumEnvironmentsBeforePromotion = minimumEnvironmentsBeforePromotion;
AutomaticDeploymentTargetRefs = automaticDeploymentTargets.ToArray();
OptionalDeploymentTargetRefs = optionalDeploymentTargets.ToArray();
}
}
}