# File lib/puppet/provider/nameservice/directoryservice.rb, line 91 91: def self.get_ds_path 92: # JJM: 2007-07-24 This method dynamically returns the DS path we're concerned with. 93: # For example, if we're working with an user type, this will be /Users 94: # with a group type, this will be /Groups. 95: # @ds_path is an attribute of the class itself. 96: if defined? @ds_path 97: return @ds_path 98: end 99: # JJM: "Users" or "Groups" etc ... (Based on the Puppet::Type) 100: # Remember this is a class method, so self.class is Class 101: # Also, @resource_type seems to be the reference to the 102: # Puppet::Type this class object is providing for. 103: return @resource_type.name.to_s.capitalize + "s" 104: end