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
Boxiang Sun
gitlab-ce
Commits
b39421bd
Commit
b39421bd
authored
Jun 05, 2016
by
Connor Shea
Committed by
James Edwards-Jones
Feb 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed backup.rake colorize method following Pages -> CE
Cherry-picked 'Remove colorize methods that weren't in CE.'
parent
95a3e2da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/tasks/gitlab/backup.rake
lib/tasks/gitlab/backup.rake
+6
-6
No files found.
lib/tasks/gitlab/backup.rake
View file @
b39421bd
...
...
@@ -57,7 +57,7 @@ namespace :gitlab do
Rake
::
Task
[
'gitlab:backup:uploads:restore'
].
invoke
unless
backup
.
skipped?
(
'uploads'
)
Rake
::
Task
[
'gitlab:backup:builds:restore'
].
invoke
unless
backup
.
skipped?
(
'builds'
)
Rake
::
Task
[
'gitlab:backup:artifacts:restore'
].
invoke
unless
backup
.
skipped?
(
'artifacts'
)
Rake
::
Task
[
"gitlab:backup:pages:restore"
].
invoke
unless
backup
.
skipped?
(
"pages"
)
Rake
::
Task
[
"gitlab:backup:pages:restore"
].
invoke
unless
backup
.
skipped?
(
'pages'
)
Rake
::
Task
[
'gitlab:backup:lfs:restore'
].
invoke
unless
backup
.
skipped?
(
'lfs'
)
Rake
::
Task
[
'gitlab:backup:registry:restore'
].
invoke
unless
backup
.
skipped?
(
'registry'
)
Rake
::
Task
[
'gitlab:shell:setup'
].
invoke
...
...
@@ -163,20 +163,20 @@ namespace :gitlab do
namespace
:pages
do
task
create: :environment
do
$progress
.
puts
"Dumping pages ... "
.
blue
$progress
.
puts
"Dumping pages ... "
.
color
(
:blue
)
if
ENV
[
"SKIP"
]
&&
ENV
[
"SKIP"
].
include?
(
"pages"
)
$progress
.
puts
"[SKIPPED]"
.
c
yan
$progress
.
puts
"[SKIPPED]"
.
c
olor
(
:cyan
)
else
Backup
::
Pages
.
new
.
dump
$progress
.
puts
"done"
.
green
$progress
.
puts
"done"
.
color
(
:green
)
end
end
task
restore: :environment
do
$progress
.
puts
"Restoring pages ... "
.
blue
$progress
.
puts
"Restoring pages ... "
.
color
(
:blue
)
Backup
::
Pages
.
new
.
restore
$progress
.
puts
"done"
.
green
$progress
.
puts
"done"
.
color
(
:green
)
end
end
...
...
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