Disable colorization if STDOUT is not a tty

This commit is contained in:
Robert Speicher 2016-01-12 21:34:23 -05:00
parent 1813adcdea
commit a43fd5ce6d
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ module Gitlab
class TaskAbortedByUserError < StandardError; end
end
String.disable_colorization = true unless STDOUT.isatty
namespace :gitlab do
# Ask if the user wants to continue