Revision 953a2b4d
Added by Marc Dequènes over 14 years ago
- ID 953a2b4d0942a3ca69d941dc031485db21de1106
lib/ldap_shadows/config.rb | ||
---|---|---|
config = File.read(config_file)
|
||
|
||
shadow = Shadow.new(shadow_name)
|
||
# register early (needed to load hooks)
|
||
# register early (needed to load plugins)
|
||
@shadows[shadow_name] = {
|
||
:config_path => shadow_config_path,
|
||
:shadow => shadow
|
||
... | ... | |
s_info = get_shadow_info(shadow_name)
|
||
return nil if s_info.nil?
|
||
|
||
filename = File.join(s_info[:config_path], "hooks", type.pluralize, hook_name.to_s.downcase + ".rb")
|
||
filename = File.join(s_info[:config_path], "plugins", type.pluralize, hook_name.to_s.downcase + ".rb")
|
||
return nil unless File.exists?(filename)
|
||
|
||
File.read(filename)
|
Also available in: Unified diff
[evol/fix] fixed creation hooks call, hooks->plugins with hooks and simplified hooks, added plugin parameters in config and updated aspect/fs