Commit 5e73a3b1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove colored gem from upgrader script

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ee53b739
require "colored"
require_relative "version_info" require_relative "version_info"
module Gitlab module Gitlab
class Upgrader class Upgrader
def execute def execute
puts "GitLab #{current_version.major} upgrade tool".yellow puts "GitLab #{current_version.major} upgrade tool"
puts "Your version is #{current_version}" puts "Your version is #{current_version}"
puts "Latest available version for GitLab #{current_version.major} is #{latest_version}" puts "Latest available version for GitLab #{current_version.major} is #{latest_version}"
...@@ -62,12 +61,12 @@ module Gitlab ...@@ -62,12 +61,12 @@ module Gitlab
def upgrade def upgrade
update_commands.each do |title, cmd| update_commands.each do |title, cmd|
puts title.yellow puts title
puts " -> #{cmd}" puts " -> #{cmd}"
if system(cmd) if system(cmd)
puts " -> OK".green puts " -> OK"
else else
puts " -> FAILED".red puts " -> FAILED"
puts "Failed to upgrade. Try to repeat task or proceed with upgrade manually " puts "Failed to upgrade. Try to repeat task or proceed with upgrade manually "
exit 1 exit 1
end end
......
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