diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-10 14:31:22 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-10 14:31:22 +0200 |
commit | 7a6b39c9a919e05d2566bcb3b8b6a4f9b454c71e (patch) | |
tree | 462753fd59671671b1617853a70252fa0e8f2581 /app/models/commit.rb | |
parent | 96e81bddd513b1d4d9e558e13fcf4c5d5f6b141e (diff) | |
download | gitlab-ci-7a6b39c9a919e05d2566bcb3b8b6a4f9b454c71e.tar.gz |
rename method run_deploy_job to create_deploy_builds
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index e92af46..11b61d4 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -132,7 +132,7 @@ class Commit < ActiveRecord::Base @retried_builds ||= (builds - builds_without_retry) end - def run_deploy_job(ref) + def create_deploy_builds(ref) if success? && !last_build.job.deploy? project.jobs.deploy.active.each do |job| if job.run_for_ref?(ref) |