Commit 5e73a3b12407602d315aa648e36620b9b1baa22b
1 parent
ee53b739
Exists in
master
and in
4 other branches
Remove colored gem from upgrader script
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
lib/gitlab/upgrader.rb
1 | -require "colored" | ||
2 | require_relative "version_info" | 1 | require_relative "version_info" |
3 | 2 | ||
4 | module Gitlab | 3 | module Gitlab |
5 | class Upgrader | 4 | class Upgrader |
6 | def execute | 5 | def execute |
7 | - puts "GitLab #{current_version.major} upgrade tool".yellow | 6 | + puts "GitLab #{current_version.major} upgrade tool" |
8 | puts "Your version is #{current_version}" | 7 | puts "Your version is #{current_version}" |
9 | puts "Latest available version for GitLab #{current_version.major} is #{latest_version}" | 8 | puts "Latest available version for GitLab #{current_version.major} is #{latest_version}" |
10 | 9 | ||
@@ -62,12 +61,12 @@ module Gitlab | @@ -62,12 +61,12 @@ module Gitlab | ||
62 | 61 | ||
63 | def upgrade | 62 | def upgrade |
64 | update_commands.each do |title, cmd| | 63 | update_commands.each do |title, cmd| |
65 | - puts title.yellow | 64 | + puts title |
66 | puts " -> #{cmd}" | 65 | puts " -> #{cmd}" |
67 | if system(cmd) | 66 | if system(cmd) |
68 | - puts " -> OK".green | 67 | + puts " -> OK" |
69 | else | 68 | else |
70 | - puts " -> FAILED".red | 69 | + puts " -> FAILED" |
71 | puts "Failed to upgrade. Try to repeat task or proceed with upgrade manually " | 70 | puts "Failed to upgrade. Try to repeat task or proceed with upgrade manually " |
72 | exit 1 | 71 | exit 1 |
73 | end | 72 | end |