debian-mirror-gitlab/lib/gitlab_settings.rb
2023-07-09 08:55:56 +05:30

17 lines
403 B
Ruby

# 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