def auto_registration(directory, options = {})
      auto_registration = AutoRegistration.new(directory, options)
      auto_registration.relations.map { |r| register_relation(r) }
      auto_registration.commands.map { |r| register_command(r) }
      auto_registration.mappers.map { |r| register_mapper(r) }
      self
    end
def auto_registration(directory, options = {})
      auto_registration = AutoRegistration.new(directory, options)
      auto_registration.relations.map { |r| register_relation(r) }
      auto_registration.commands.map { |r| register_command(r) }
      auto_registration.mappers.map { |r| register_mapper(r) }
      self
    end
@api private
 Enable auto-registration for a given setup object

 @param [String, Pathname] directory The root path to components
 @param [Hash] options
 @option options [Boolean, String] :namespace Enable/disable namespace or provide a custom namespace name

 @return [Setup]

 @api public