Revision 4b046f91
Added by Marc Dequènes about 15 years ago
- ID 4b046f913560784a2e11e4f4769ba59da5bc3c85
lib/ldap_shadows/config.rb | ||
---|---|---|
end
|
||
|
||
load_config_components(shadow_config_path, 'objects') do |c_name, c_config|
|
||
shadow.load_object(c_name, c_config)
|
||
shadow.add_object(c_name, c_config)
|
||
end
|
||
|
||
shadow.load_relations
|
lib/ldap_shadows/shadow.rb | ||
---|---|---|
"LdapObject" + object_name.to_s.capitalize
|
||
end
|
||
|
||
def load_object(object_name, object_def_raw)
|
||
def add_object(object_name, object_def_raw)
|
||
object_def = @config.parse_and_validate(object_name, 'object', object_def_raw)
|
||
|
||
object_name = object_name.to_sym
|
Also available in: Unified diff
[cleanup] Shadow load_object() -> add_object() for consistency