gitlab-org--gitlab-foss/lib/gitlab/ci/config/node/validator.rb

26 lines
473 B
Ruby
Raw Normal View History

module Gitlab
module Ci
class Config
module Node
class Validator < SimpleDelegator
def initialize(node)
@node = node
super(node)
validate
end
def full_errors
errors.full_messages.map do |error|
"#{@node.key} #{error}".humanize
end
end
def self.name
'Validator'
end
end
end
end
end
end