summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-19 18:11:04 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-19 18:11:04 +0000
commit83e4339a328c1a8c8e232d06f7d5e49c6e699fba (patch)
tree01fd479e3be81f83197724a11ff56e49b65c6e32 /app/models/deployment.rb
parentffa1a49e432cce959676688109e9c71eb08a59f6 (diff)
downloadgitlab-ce-83e4339a328c1a8c8e232d06f7d5e49c6e699fba.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 1eb921da5fa..7bcf7c702f6 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -350,6 +350,13 @@ class Deployment < ApplicationRecord
File.join(environment.ref_path, 'deployments', iid.to_s)
end
+ def equal_to?(params)
+ ref == params[:ref] &&
+ tag == params[:tag] &&
+ sha == params[:sha] &&
+ status == params[:status]
+ end
+
private
def legacy_finished_at