diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-05 21:01:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-05 21:01:31 +0300 |
commit | 81a855a7df8cf24195b11dbec8f296b0bae440bb (patch) | |
tree | ee5480cdb074e21af46bd299b66d6cbb7cbe03e9 /lib | |
parent | cfb0ebe093bf68c4651e13ca199f683650ee3fe5 (diff) |
Add latest changes from gitlab-org/gitlab@16-0-stable-ee
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/entry/includes.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/gitlab/ci/config/entry/includes.rb b/lib/gitlab/ci/config/entry/includes.rb index 24d0e27e3a7..671ecf4eac1 100644 --- a/lib/gitlab/ci/config/entry/includes.rb +++ b/lib/gitlab/ci/config/entry/includes.rb @@ -7,7 +7,7 @@ module Gitlab ## # Entry that represents a list of include. # - class Includes < ::Gitlab::Config::Entry::Node + class Includes < ::Gitlab::Config::Entry::ComposableArray include ::Gitlab::Config::Entry::Validatable validations do @@ -23,16 +23,8 @@ module Gitlab end end - def self.aspects - super.append -> do - @config = Array.wrap(@config) - - @config.each_with_index do |config, i| - @entries[i] = ::Gitlab::Config::Entry::Factory.new(Entry::Include) - .value(config || {}) - .create! - end - end + def composable_class + Entry::Include end end end |