summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-20 15:54:39 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-20 15:54:39 +0100
commit458f8c1f80ff20ba3d6e439c65500ed1c1d81ba4 (patch)
tree539663e2020b6a408a83f708701aa02011c26011
parent7c54c63ac14eb8f5ce0e364d709988fcfe4dda64 (diff)
downloadgitlab-ce-458f8c1f80ff20ba3d6e439c65500ed1c1d81ba4.tar.gz
Explain why we create a StringIO
-rw-r--r--lib/tasks/gitlab/backup.rake2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index 99e84f62c66..0230fbb010b 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -79,6 +79,8 @@ namespace :gitlab do
def configure_cron_mode
if ENV['CRON']
+ # We need an object we can say 'puts' and 'print' to; let's use a
+ # StringIO.
require 'stringio'
$progress = StringIO.new
else