diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-28 21:24:36 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-28 21:24:36 +0400 |
commit | 73dde832c491f82492d33c12b8c48f03c97ae925 (patch) | |
tree | fbd1b31bf3a685b569d86ddee3eaebea475d8072 /lib | |
parent | 98c792e0ee712e41aa802812c2dcaa67265d3406 (diff) | |
parent | 562a461c56334bbf466ed1c42e3fc9650207c62f (diff) |
Merge branch 'auto_disable_color' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/task_helpers.rake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake index ac2c4577c77..c46d5855faf 100644 --- a/lib/tasks/gitlab/task_helpers.rake +++ b/lib/tasks/gitlab/task_helpers.rake @@ -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 |