summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 17:35:31 +0200
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2015-06-09 17:35:31 +0200
commit151dd7ccad23e9866dca7045405f422bdd2e77a5 (patch)
tree7144b6361191934023a835717850741c8506f03b /lib/backup
parent72371097641202e6e11acc0fe61535fe7bbb2732 (diff)
downloadgitlab-ci-151dd7ccad23e9866dca7045405f422bdd2e77a5.tar.gz
make multipart_chunk_size configurable
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index d657bba..fc847e2 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -45,7 +45,8 @@ module Backup
connection = ::Fog::Storage.new(connection_settings)
directory = connection.directories.get(remote_directory)
- if directory.files.create(key: tar_file, body: File.open(tar_file), public: false, multipart_chunk_size: 104857600)
+ if directory.files.create(key: tar_file, body: File.open(tar_file), public: false,
+ multipart_chunk_size: GitlabCi.config.backup.upload.multipart_chunk_size)
$progress.puts "done".green
else
puts "uploading backup to #{remote_directory} failed".red