From 01777723c84224f5444643edffc465f843d44e76 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Sun, 21 Apr 2024 21:40:10 +0200 Subject: [PATCH] Add Deployment.IsTesting --- internal/deployment/deployment.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/deployment/deployment.go b/internal/deployment/deployment.go index 13ac7d2..5916ba6 100644 --- a/internal/deployment/deployment.go +++ b/internal/deployment/deployment.go @@ -101,6 +101,10 @@ func (d Deployment) Update(dr DeploymentResult) Deployment { return d } +func (d Deployment) IsTesting() bool { + return d.Operation == "testing" +} + // Deploy returns a updated deployment (mainly the startAt is updated) // and asyncronously tun the deployment. Once finished, a // DeploymentResult is emitted on the channel d.deploymentCh.