Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
7d58489f
Commit
7d58489f
authored
Oct 06, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable
parent
e7896447
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/backup/files.rb
lib/backup/files.rb
+2
-3
No files found.
lib/backup/files.rb
View file @
7d58489f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment