BigW Consortium Gitlab

Commit df25c196 by Grzegorz Bizon

Use Ci config validation helpers only where needed

parent 6bd67f52
......@@ -2,7 +2,7 @@ module Ci
class GitlabCiYamlProcessor
class ValidationError < StandardError; end
include Gitlab::Ci::Config::ValidationHelpers
include Gitlab::Ci::Config::Node::ValidationHelpers
DEFAULT_STAGES = %w(build test deploy)
DEFAULT_STAGE = 'test'
......
......@@ -3,6 +3,8 @@ module Gitlab
class Config
module Node
class BeforeScript < Entry
include ValidationHelpers
def keys
{}
end
......
......@@ -3,8 +3,6 @@ module Gitlab
class Config
module Node
class Entry
include Config::ValidationHelpers
attr_reader :value, :nodes, :parent
def initialize(value, root = nil, parent = nil)
......
module Gitlab
module Ci
class Config
module Node
module ValidationHelpers
private
......@@ -23,4 +24,5 @@ module Gitlab
end
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment