debian-mirror-gitlab/lib/gitlab/ci/config/entry/include/rules.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
581 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
class Include
class Rules < ::Gitlab::Config::Entry::ComposableArray
include ::Gitlab::Config::Entry::Validatable
validations do
validates :config, presence: true
validates :config, type: Array
end
def value
@config
end
def composable_class
Entry::Include::Rules::Rule
end
end
end
end
end
end
end