Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 21:07:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 21:07:43 +0300
commit6f0f893bd87535b61e0ecb1ce069eaa7fcb9e5be (patch)
tree8af92b29c838e9af2fd70f9a4a2314a08f4af922 /app/models/concerns/ci
parent8b1228b0d409d7751f01d9fb72ebfbbf62399486 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns/ci')
-rw-r--r--app/models/concerns/ci/processable.rb41
1 files changed, 0 insertions, 41 deletions
diff --git a/app/models/concerns/ci/processable.rb b/app/models/concerns/ci/processable.rb
deleted file mode 100644
index c229358ad17..00000000000
--- a/app/models/concerns/ci/processable.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-# frozen_string_literal: true
-
-module Ci
- ##
- # This module implements methods that need to be implemented by CI/CD
- # entities that are supposed to go through pipeline processing
- # services.
- #
- #
- module Processable
- extend ActiveSupport::Concern
-
- included do
- has_many :needs, class_name: 'Ci::BuildNeed', foreign_key: :build_id, inverse_of: :build
-
- accepts_nested_attributes_for :needs
-
- scope :preload_needs, -> { preload(:needs) }
- end
-
- def schedulable?
- raise NotImplementedError
- end
-
- def action?
- raise NotImplementedError
- end
-
- def when
- read_attribute(:when) || 'on_success'
- end
-
- def expanded_environment_name
- raise NotImplementedError
- end
-
- def scoped_variables_hash
- raise NotImplementedError
- end
- end
-end