diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-06 13:23:27 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-06 21:56:58 +0300 |
commit | 940763e0e72a7f71c6e60f2a1a848f8fe4afaf33 (patch) | |
tree | 6aa27cc1175ab3d41f69aaa250e3c34a9db71efb /lib/gitlab/ci/config.rb | |
parent | a3c0745514ad98df1fbb8a6142f6cc50df76edae (diff) |
Use CI config errors from new processor in legacy one
Diffstat (limited to 'lib/gitlab/ci/config.rb')
-rw-r--r-- | lib/gitlab/ci/config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/config.rb b/lib/gitlab/ci/config.rb index 5fc4894311f..a042c49add7 100644 --- a/lib/gitlab/ci/config.rb +++ b/lib/gitlab/ci/config.rb @@ -3,6 +3,8 @@ module Gitlab class Config class LoaderError < StandardError; end + delegate :valid?, :errors, to: :@global + def initialize(config) loader = Loader.new(config) @@ -11,6 +13,8 @@ module Gitlab end @config = loader.load + @global = Node::Global.new(@config, self) + @global.process! end def to_hash |