aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-05-18 08:40:33 -0400
committerRalph Amissah <ralph@amissah.com>2014-05-18 08:40:33 -0400
commitb17d90bcdc2450de037a7f160dcb83b67cafe9fa (patch)
treed2a3bce1d91ba3741eabef533a187900ae091f1f
parentdocumentation updates (diff)
v6: utils, add ok code marker
-rw-r--r--lib/sisu/v6/utils.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/sisu/v6/utils.rb b/lib/sisu/v6/utils.rb
index 8f9e17b8..5879db27 100644
--- a/lib/sisu/v6/utils.rb
+++ b/lib/sisu/v6/utils.rb
@@ -133,6 +133,18 @@ module SiSU_Utils
def mark(v=nil,x=nil)
puts set(v,x)
end
+ def ok(v=nil,x=nil)
+ if (v.is_a?(Symbol) \
+ and x.is_a?(String))
+ x= '*OK* ' + x
+ elsif v.is_a?(String)
+ v='*OK* ' + v
+ x=nil
+ else
+ v,x='*OK*',nil
+ end
+ puts set(v,x)
+ end
def warn(v=nil,x=nil)
if (v.is_a?(Symbol) \
and x.is_a?(String))
@@ -143,7 +155,7 @@ module SiSU_Utils
else
v,x='*WARN*',nil
end
- STDERR.puts set(v,x)
+ puts set(v,x)
end
def error(v=nil,x=nil)
if (v.is_a?(Symbol) \