    # File lib/compass/installers/manifest.rb, line 58
          def discover(type)
            type = self.class.plural_types[type] || type
            dir = File.dirname(@manifest_file)
            Dir.glob("#{dir}/**/*").each do |file|
              next if /manifest\.rb/ =~ file
              short_name = file[(dir.length+1)..-1]
              options = {}
              ext = if File.extname(short_name) == ".erb"
                options[:erb] = true
                File.extname(short_name[0..-5])
              else
                File.extname(short_name)
              end[1..-1]
              file_type = self.class.known_extensions[ext]
              file_type = :file if file_type.nil?
              file_type = :directory if File.directory?(file)
              if type == :all || type == file_type
                send(file_type, short_name, options)
              end
            end
          end