summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-07 15:38:45 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-07 15:38:45 +0000
commit8abdabdb3ad9e4b87893f24042de077cd4a7d791 (patch)
tree998158573759dbbb84cff42be299a5391de520fc /lib
parentff4950b76c1643120c91ca12ee7187b3131f1010 (diff)
parentb39421bded4b45c1053d47a8d20e6c308f20c734 (diff)
downloadgitlab-ce-8abdabdb3ad9e4b87893f24042de077cd4a7d791.tar.gz
Merge branch 'jej-fix-backup-rake-color' into 'master'
Fixed backup.rake colorize method following Pages -> CE See merge request !9031
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/backup.rake12
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