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
1 changed files with 10 additions and 0 deletions

View File

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