config.rb 258 Bytes
Newer Older
1 2 3
module Gitlab
  module Ci
    class Config
4
      class LoaderError < StandardError; end
5 6

      def initialize(config)
7 8
        loader = Loader.new(config)
        @config = loader.load!
9 10 11 12 13 14 15 16
      end

      def to_hash
        @config
      end
    end
  end
end