[Gridflow-cvs] [svn] commit: r5230 - /trunk/doc/find_missing.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Mar 28 12:46:09 EDT 2010


Author: matju
Date: Sun Mar 28 12:46:09 2010
New Revision: 5230

Log:
add def report

Modified:
    trunk/doc/find_missing.rb

Modified: trunk/doc/find_missing.rb
==============================================================================
--- trunk/doc/find_missing.rb (original)
+++ trunk/doc/find_missing.rb Sun Mar 28 12:46:09 2010
@@ -32,19 +32,16 @@
   }
 }
 
-puts "missing from help files: "
-puts (ab-c).sort.join" "
-puts (ab-c).size
+def report text,list
+  puts text
+  puts list.sort.join" " if list.length>0
+  puts "(#{list.size})"
+end
+
+report "missing from help files: ", ab-c
 puts ""
-
-puts "orphan help files:"
-puts (c-ab).sort.join" "
+report "orphan help files:", c-ab
 puts ""
-
-puts "missing from index:"
-puts (ab-d).sort.join" "
-puts (ab-d).size
+report "missing from index:", ab-d
 puts ""
-
-puts "orphan index entries: "
-puts (d-ab).sort.join" "
+report "orphan index entries: ", d-ab



More information about the Gridflow-cvs mailing list