Class: Gitlab::Ci::Config::Yaml::Tags::Reference

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/ci/config/yaml/tags/reference.rb

Constant Summary collapse

MissingReferenceError =
Class.new(Tags::TagError)

Constants inherited from Base

Base::CircularReferenceError, Base::NotValidError

Instance Attribute Summary

Attributes inherited from Base

#data, #resolved_status, #resolved_value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#init_with, #resolve

Methods included from Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Class Method Details

.tagObject



11
12
13
# File 'lib/gitlab/ci/config/yaml/tags/reference.rb', line 11

def self.tag
  '!reference'
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/gitlab/ci/config/yaml/tags/reference.rb', line 16

def valid?
  data[:seq].is_a?(Array) &&
    !data[:seq].empty? &&
    data[:seq].all?(String)
end