Project

General

Profile

« Previous | Next » 

Revision b527ce77

Added by Marc Dequènes over 14 years ago

  • ID b527ce77164d4d87374b51d94265c0feee136bc6

[cleanup] includes reorganization

View differences:

lib/ldap_shadows/config.rb
require 'yaml'
require 'kwalify'
require 'facets/hash/recursive_merge'
require 'ldap_shadows/shadow'
module LdapShadows
class Config
......
@global_config
end
# needs 'ldap_shadows/shadow' for this feature to work
def load_shadow(shadow_name = nil)
shadow_name = self.global_config[:default_shadow] if shadow_name.nil?
if shadow_name.nil?
......
end
config = File.read(config_file)
shadow = Shadow.new(shadow_name)
shadow = Shadow.new(shadow_name, self)
# register early (needed to load plugins)
@shadows[shadow_name] = {
:config_path => shadow_config_path,

Also available in: Unified diff