summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/gitlab/backup.rake7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index e057fb01454..e96fbb64372 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -26,7 +26,6 @@ namespace :gitlab do
desc 'GitLab | Restore a previously created backup'
task restore: :gitlab_environment do
warn_user_is_not_gitlab
- progress = configure_cron_mode
backup = Backup::Manager.new(progress)
backup.unpack
@@ -232,7 +231,7 @@ namespace :gitlab do
end
end
- def configure_cron_mode
+ def progress
if ENV['CRON']
# We need an object we can say 'puts' and 'print' to; let's use a
# StringIO.
@@ -242,9 +241,5 @@ namespace :gitlab do
$stdout
end
end
-
- def progress
- configure_cron_mode
- end
end # namespace end: backup
end # namespace end: gitlab