debian-mirror-gitlab/lib/gitlab_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
403 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
require 'active_support'
require 'active_support/core_ext/hash'
require_relative 'gitlab_settings/settings'
require_relative 'gitlab_settings/options'
module GitlabSettings
MissingSetting = Class.new(StandardError)
def self.load(source = nil, section = nil, &block)
::GitlabSettings::Settings
.new(source, section)
.extend(Module.new(&block))
end
end