Skip to content

Commit 49096d1

Browse files
committed
feat: Add property that determines if a single complete Deployment has been defined in the product config.
1 parent 40397d2 commit 49096d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

com.playeveryware.eos/Runtime/Core/Config/ProductionEnvironments.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ public ProductionEnvironments()
5050
Sandboxes.SetRemovePredicate(CanSandboxBeRemoved);
5151
}
5252

53+
/// <summary>
54+
/// Indicates whether there is at least one complete deployment defined.
55+
/// </summary>
56+
public bool IsDeploymentDefined
57+
{
58+
get
59+
{
60+
foreach (var deployment in Deployments)
61+
{
62+
if (deployment.Value.IsComplete)
63+
{
64+
return true;
65+
}
66+
}
67+
68+
return false;
69+
}
70+
}
71+
5372
/// <summary>
5473
/// Removes a Sandbox from the Production Environment.
5574
/// </summary>

0 commit comments

Comments
 (0)