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/config/yaml/result.rb')
-rw-r--r--lib/gitlab/ci/config/yaml/result.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/yaml/result.rb b/lib/gitlab/ci/config/yaml/result.rb
index 6b20eeae203..a68cfde6653 100644
--- a/lib/gitlab/ci/config/yaml/result.rb
+++ b/lib/gitlab/ci/config/yaml/result.rb
@@ -7,16 +7,21 @@ module Gitlab
class Result
attr_reader :error, :error_class
- def initialize(config: nil, error: nil, error_class: nil)
+ def initialize(config: nil, error: nil, error_class: nil, interpolated: false)
@config = Array.wrap(config)
@error = error
@error_class = error_class
+ @interpolated = interpolated
end
def valid?
error.nil?
end
+ def interpolated?
+ !!@interpolated
+ end
+
def has_header?
return false unless @config.first.is_a?(Hash)