diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-11-25 03:20:23 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-11-25 03:20:23 +0300 |
commit | ec002e802677a691d758ebc6f94f23020b2b063a (patch) | |
tree | afb821a317572673844ebe82a3e15b0ae326fa39 /lib | |
parent | 28de6770fae44f65aa81538ff660fc7050072070 (diff) |
Remove usage of Colored
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/task_helpers.rake | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake index c95b6540ebc..efb863a8764 100644 --- a/lib/tasks/gitlab/task_helpers.rake +++ b/lib/tasks/gitlab/task_helpers.rake @@ -2,16 +2,6 @@ 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 @@ -103,7 +93,7 @@ namespace :gitlab do gitlab_user = Gitlab.config.gitlab.user current_user = run(%W(whoami)).chomp unless current_user == gitlab_user - puts "#{Colored.color(:black)+Colored.color(:on_yellow)} Warning #{Colored.extra(:clear)}" + puts " Warning ".colorize(:black).on_yellow puts " You are running as user #{current_user.magenta}, we hope you know what you are doing." puts " Things may work\/fail for the wrong reasons." puts " For correct results you should run this as user #{gitlab_user.magenta}." |