Commit 75b4ca80 authored by Alain Takoudjou's avatar Alain Takoudjou

Colorize gem replaced with rainbow.

parent c711cfd6
...@@ -5,11 +5,12 @@ module SystemCheck ...@@ -5,11 +5,12 @@ module SystemCheck
# if we ever print anything in red - that's an error # if we ever print anything in red - that's an error
$check_failed = false $check_failed = false
class String class String
alias_method :orig_color, :color
alias_method :orig_red, :red def color(code)
def red(*args) if code == :red
$check_failed = true $check_failed = true
orig_red(*args) end
orig_color(code)
end end
end end
......
...@@ -3,11 +3,12 @@ module SystemCheck ...@@ -3,11 +3,12 @@ module SystemCheck
# if we ever print anything in red - that's an error # if we ever print anything in red - that's an error
$check_failed = false $check_failed = false
class String class String
alias_method :orig_color, :color
alias_method :orig_red, :red def color(code)
def red(*args) if code == :red
$check_failed = true $check_failed = true
orig_red(*args) end
orig_color(code)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment