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 | 1 | require_relative "version_info" |
| 3 | 2 | |
| 4 | 3 | module Gitlab |
| 5 | 4 | class Upgrader |
| 6 | 5 | def execute |
| 7 | - puts "GitLab #{current_version.major} upgrade tool".yellow | |
| 6 | + puts "GitLab #{current_version.major} upgrade tool" | |
| 8 | 7 | puts "Your version is #{current_version}" |
| 9 | 8 | puts "Latest available version for GitLab #{current_version.major} is #{latest_version}" |
| 10 | 9 | |
| ... | ... | @@ -62,12 +61,12 @@ module Gitlab |
| 62 | 61 | |
| 63 | 62 | def upgrade |
| 64 | 63 | update_commands.each do |title, cmd| |
| 65 | - puts title.yellow | |
| 64 | + puts title | |
| 66 | 65 | puts " -> #{cmd}" |
| 67 | 66 | if system(cmd) |
| 68 | - puts " -> OK".green | |
| 67 | + puts " -> OK" | |
| 69 | 68 | else |
| 70 | - puts " -> FAILED".red | |
| 69 | + puts " -> FAILED" | |
| 71 | 70 | puts "Failed to upgrade. Try to repeat task or proceed with upgrade manually " |
| 72 | 71 | exit 1 |
| 73 | 72 | end | ... | ... |