summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-06 15:22:08 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-06 15:22:08 +0200
commit7d58489fd908b2263f02e8919b1bd0b3fae1201d (patch)
tree938935a0857524772ee91bb7759303cf4f1c9f88 /lib/backup
parente789644783fae55f1095ffcc38b32f810f549caa (diff)
downloadgitlab-ce-7d58489fd908b2263f02e8919b1bd0b3fae1201d.tar.gz
Remove unused variable
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/files.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/backup/files.rb b/lib/backup/files.rb
index 1b08e3324d7..5a210a0e464 100644
--- a/lib/backup/files.rb
+++ b/lib/backup/files.rb
@@ -2,14 +2,13 @@ require 'open3'
module Backup
class Files
- attr_reader :name, :app_files_dir, :backup_tarball, :backup_dir, :files_parent_dir
+ attr_reader :name, :app_files_dir, :backup_tarball, :files_parent_dir
def initialize(app_files_dir)
@app_files_dir = File.realpath(app_files_dir)
@name = File.basename(app_files_dir)
@files_parent_dir = File.realpath(File.join(@app_files_dir, '..'))
- @backup_dir = Gitlab.config.backup.path
- @backup_tarball = File.join(@backup_dir, name + '.tar.gz')
+ @backup_tarball = File.join(Gitlab.config.backup.path, name + '.tar.gz')
end
# Copy files from public/files to backup/files