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:
Diffstat (limited to 'lib/gitlab/ci/pipeline/chain/config/content/source.rb')
-rw-r--r--lib/gitlab/ci/pipeline/chain/config/content/source.rb49
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/config/content/source.rb b/lib/gitlab/ci/pipeline/chain/config/content/source.rb
deleted file mode 100644
index 69dca1568b6..00000000000
--- a/lib/gitlab/ci/pipeline/chain/config/content/source.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module Ci
- module Pipeline
- module Chain
- module Config
- class Content
- # When removing ci_project_pipeline_config_refactoring, this and its subclasses will be removed.
- class Source
- include Gitlab::Utils::StrongMemoize
-
- DEFAULT_YAML_FILE = '.gitlab-ci.yml'
-
- attr_reader :command
-
- def initialize(pipeline, command)
- @pipeline = pipeline
- @command = command
- end
-
- def exists?
- strong_memoize(:exists) do
- content.present?
- end
- end
-
- def content
- raise NotImplementedError
- end
-
- def source
- raise NotImplementedError
- end
-
- def project
- @project ||= @pipeline.project
- end
-
- def ci_config_path
- @ci_config_path ||= project.ci_config_path.presence || DEFAULT_YAML_FILE
- end
- end
- end
- end
- end
- end
- end
-end