diff options
author | Stan Hu <stanhu@gmail.com> | 2018-05-23 23:13:04 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-05-23 23:13:04 -0700 |
commit | 11a806a9d1f7c85cacf2c6966be003e8d9f2c4f2 (patch) | |
tree | 1717cfa66e41ec2929dbda1140c545053d2685d5 | |
parent | fb1e8670e14c2267e6d8fbb1d35e68f499844e8b (diff) | |
download | gitlab-ce-sh-fix-backup-specific-rake-task.tar.gz |
Avoid memoization of global variablessh-fix-backup-specific-rake-task
-rw-r--r-- | lib/tasks/gitlab/backup.rake | 7 |
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 |