summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config.rb
blob: ffe633d4b63d3c57508d5099930611c099f82cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Gitlab
  module Ci
    class Config
      class LoaderError < StandardError; end

      def initialize(config)
        loader = Loader.new(config)
        @config = loader.load!
      end

      def to_hash
        @config
      end
    end
  end
end