# 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: return @ds_path if defined?(@ds_path) 97: # JJM: "Users" or "Groups" etc ... (Based on the Puppet::Type) 98: # Remember this is a class method, so self.class is Class 99: # Also, @resource_type seems to be the reference to the 100: # Puppet::Type this class object is providing for. 101: @resource_type.name.to_s.capitalize + "s" 102: end