summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config.rb
blob: b6ce791c0ffa5ae6475a41967ec29ecc53fc9cde (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