Object
Redefine the ANSI method: do not print ANSI when not running in the terminal
# File lib/elasticsearch/extensions/test/cluster.rb, line 13 def ansi(*args) STDOUT.tty? ? ANSI.ansi(self, *args) : self end