Commit ec002e80 authored by Robert Speicher's avatar Robert Speicher
Browse files

Remove usage of Colored

parent 28de6770
......@@ -2,16 +2,6 @@ module Gitlab
class TaskAbortedByUserError < StandardError; end
unless STDOUT.isatty
module Colored
extend self
def colorize(string, options={})
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}."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment