Skip to content

Commit

Permalink
Add Deployment.IsTesting
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewo committed Apr 27, 2024
1 parent a059f96 commit 0177772
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0177772

Please sign in to comment.