mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
Disable rake color output unless connected to TTY
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user