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
2462949f
Commit
2462949f
authored
Dec 23, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update output of gitlab:gitolite:update_*
parent
31e0fa65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
lib/tasks/gitlab/gitolite_rebuild.rake
lib/tasks/gitlab/gitolite_rebuild.rake
+12
-9
No files found.
lib/tasks/gitlab/gitolite_rebuild.rake
View file @
2462949f
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:gitolite
do
namespace
:gitolite
do
desc
"GITLAB | Rebuild each project
at g
itolite config"
desc
"GITLAB | Rebuild each project
in G
itolite config"
task
:update_repos
=>
:environment
do
task
:update_repos
=>
:environment
do
puts
"Starting Projects"
warn_user_is_not_gitlab
puts
"Rebuilding projects ... "
Project
.
find_each
(
:batch_size
=>
100
)
do
|
project
|
Project
.
find_each
(
:batch_size
=>
100
)
do
|
project
|
puts
"
\n
===
#{
project
.
name
}
"
puts
"
#{
project
.
name_with_namespace
.
yellow
}
...
"
project
.
update_repository
project
.
update_repository
puts
puts
"...
#{
"done"
.
green
}
"
end
end
puts
"Done with projects"
end
end
desc
"GITLAB | Rebuild each
key at g
itolite config"
desc
"GITLAB | Rebuild each
user key in G
itolite config"
task
:update_keys
=>
:environment
do
task
:update_keys
=>
:environment
do
puts
"Starting Key"
warn_user_is_not_gitlab
puts
"Rebuilding keys ... "
Key
.
find_each
(
:batch_size
=>
100
)
do
|
key
|
Key
.
find_each
(
:batch_size
=>
100
)
do
|
key
|
puts
"
#{
key
.
identifier
.
yellow
}
... "
Gitlab
::
Gitolite
.
new
.
set_key
(
key
.
identifier
,
key
.
key
,
key
.
projects
)
Gitlab
::
Gitolite
.
new
.
set_key
(
key
.
identifier
,
key
.
key
,
key
.
projects
)
p
rint
'.'
p
uts
"...
#{
"done"
.
green
}
"
end
end
puts
"Done with keys"
end
end
end
end
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