Disable rake color output unless connected to TTY
This commit is contained in:
parent
44c55307a0
commit
562a461c56
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue