Disable rake color output unless connected to TTY

This commit is contained in:
Jacob Vosmaer 2013-11-27 10:07:26 +01:00
parent 44c55307a0
commit 562a461c56

View file

@ -2,6 +2,16 @@ module Gitlab
class TaskAbortedByUserError < StandardError; end class TaskAbortedByUserError < StandardError; end
end end
unless STDOUT.isatty
module Colored
extend self
def colorize(string, options={})
string
end
end
end
namespace :gitlab do namespace :gitlab do
# Ask if the user wants to continue # Ask if the user wants to continue