Better coloring of output of Rake tasks; Turn off colored output in Rake tasks if not on a TTY (not sure if it works in Hudson); Add support to TCR for turning off colors since there is code to calc options but it wasn't used; NOTE: coloring in TCR should be MUCH better tested.
This commit is contained in:
6
Rakefile
6
Rakefile
@@ -1,5 +1,6 @@
|
||||
require 'json'
|
||||
require 'tilt'
|
||||
require 'term/ansicolor'
|
||||
|
||||
Dir["#{File.dirname(__FILE__)}/tasks/**/*.rb"].each do |file|
|
||||
require file
|
||||
@@ -19,6 +20,11 @@ def node_installed?
|
||||
`which node` =~ /node/
|
||||
end
|
||||
|
||||
class String
|
||||
include Term::ANSIColor
|
||||
end
|
||||
|
||||
Term::ANSIColor.coloring = STDOUT.isatty
|
||||
|
||||
#namespace :jasmine do
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user