Commit 73dde832c491f82492d33c12b8c48f03c97ae925

Authored by Dmitriy Zaporozhets
2 parents 98c792e0 562a461c

Merge branch 'auto_disable_color' of /home/git/repositories/gitlab/gitlabhq

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
lib/tasks/gitlab/task_helpers.rake
... ... @@ -2,6 +2,16 @@ module Gitlab
2 2 class TaskAbortedByUserError < StandardError; end
3 3 end
4 4  
  5 +unless STDOUT.isatty
  6 + module Colored
  7 + extend self
  8 +
  9 + def colorize(string, options={})
  10 + string
  11 + end
  12 + end
  13 +end
  14 +
5 15 namespace :gitlab do
6 16  
7 17 # Ask if the user wants to continue
... ...