diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-05 12:09:47 -0600 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-02-07 14:43:32 +0000 |
commit | b39421bded4b45c1053d47a8d20e6c308f20c734 (patch) | |
tree | 5f43684f0ad9d28df34d0c56c9ca693f9cb2c7f9 /lib | |
parent | 95a3e2da9b75ac30ff95f3bf6018d200204f6af6 (diff) | |
download | gitlab-ce-b39421bded4b45c1053d47a8d20e6c308f20c734.tar.gz |
Fixed backup.rake colorize method following Pages -> CEjej-fix-backup-rake-color
Cherry-picked 'Remove colorize methods that weren't in CE.'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/backup.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake index ffab6f492fb..1650263b98d 100644 --- a/lib/tasks/gitlab/backup.rake +++ b/lib/tasks/gitlab/backup.rake @@ -57,7 +57,7 @@ namespace :gitlab do Rake::Task['gitlab:backup:uploads:restore'].invoke unless backup.skipped?('uploads') Rake::Task['gitlab:backup:builds:restore'].invoke unless backup.skipped?('builds') Rake::Task['gitlab:backup:artifacts:restore'].invoke unless backup.skipped?('artifacts') - Rake::Task["gitlab:backup:pages:restore"].invoke unless backup.skipped?("pages") + Rake::Task["gitlab:backup:pages:restore"].invoke unless backup.skipped?('pages') Rake::Task['gitlab:backup:lfs:restore'].invoke unless backup.skipped?('lfs') Rake::Task['gitlab:backup:registry:restore'].invoke unless backup.skipped?('registry') Rake::Task['gitlab:shell:setup'].invoke @@ -163,20 +163,20 @@ namespace :gitlab do namespace :pages do task create: :environment do - $progress.puts "Dumping pages ... ".blue + $progress.puts "Dumping pages ... ".color(:blue) if ENV["SKIP"] && ENV["SKIP"].include?("pages") - $progress.puts "[SKIPPED]".cyan + $progress.puts "[SKIPPED]".color(:cyan) else Backup::Pages.new.dump - $progress.puts "done".green + $progress.puts "done".color(:green) end end task restore: :environment do - $progress.puts "Restoring pages ... ".blue + $progress.puts "Restoring pages ... ".color(:blue) Backup::Pages.new.restore - $progress.puts "done".green + $progress.puts "done".color(:green) end end |