Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-28 21:24:36 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-28 21:24:36 +0400
commit73dde832c491f82492d33c12b8c48f03c97ae925 (patch)
treefbd1b31bf3a685b569d86ddee3eaebea475d8072 /lib
parent98c792e0ee712e41aa802812c2dcaa67265d3406 (diff)
parent562a461c56334bbf466ed1c42e3fc9650207c62f (diff)
Merge branch 'auto_disable_color' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/task_helpers.rake10
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