Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
projects.thm.de
GitLab
Commits
2462949f
Commit
2462949f
authored
Dec 23, 2012
by
Riyad Preukschas
Browse files
Update output of gitlab:gitolite:update_*
parent
31e0fa65
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/gitolite_rebuild.rake
View file @
2462949f
namespace
:gitlab
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
puts
"Starting Projects"
warn_user_is_not_gitlab
puts
"Rebuilding projects ... "
Project
.
find_each
(
:batch_size
=>
100
)
do
|
project
|
puts
"
\n
===
#{
project
.
name
}
"
puts
"
#{
project
.
name
_with_namespace
.
yellow
}
...
"
project
.
update_repository
puts
puts
"...
#{
"done"
.
green
}
"
end
puts
"Done with projects"
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
puts
"Starting Key"
warn_user_is_not_gitlab
puts
"Rebuilding keys ... "
Key
.
find_each
(
:batch_size
=>
100
)
do
|
key
|
puts
"
#{
key
.
identifier
.
yellow
}
... "
Gitlab
::
Gitolite
.
new
.
set_key
(
key
.
identifier
,
key
.
key
,
key
.
projects
)
p
rint
'.'
p
uts
"...
#{
"done"
.
green
}
"
end
puts
"Done with keys"
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