Commit 56f9a674a6f398abc2541b435808361b13b7e713

Authored by Riyad Preukschas
1 parent 501f0488

Add gitlab:satellites:create as an alias for gitlab:enable_automerge

doc/raketasks/maintenance.md
... ... @@ -139,6 +139,16 @@ Checking GitLab ... Finished
139 139 ```
140 140  
141 141  
  142 +### (Re-)Create satellite repos
  143 +
  144 +This will create satellite repos for all your projects.
  145 +If necessary, remove the `tmp/repo_satellites` directory and rerun the command below.
  146 +
  147 +```
  148 +bundle exec rake gitlab:satellites:create
  149 +```
  150 +
  151 +
142 152 ### Rebuild each key at gitolite config
143 153  
144 154 This will send all users ssh public keys to gitolite and grant them access (based on their permission) to their projects.
... ...
lib/tasks/gitlab/check.rake
... ... @@ -192,7 +192,9 @@ namespace :gitlab do
192 192 else
193 193 puts "no".red
194 194 try_fixing_it(
195   - "sudo -u gitlab -H bundle exec rake gitlab:enable_automerge"
  195 + "sudo -u gitlab -H bundle exec rake gitlab:satellites:create",
  196 + "If necessary, remove the tmp/repo_satellites directory ...",
  197 + "... and rerun the above command"
196 198 )
197 199 for_more_information(
198 200 "doc/raketasks/maintenance.md "
... ...
lib/tasks/gitlab/enable_automerge.rake
... ... @@ -12,4 +12,9 @@ namespace :gitlab do
12 12  
13 13 puts "Done!".green
14 14 end
  15 +
  16 + namespace :satellites do
  17 + desc "GITLAB | Create satellite repos"
  18 + task create: 'gitlab:enable_automerge'
  19 + end
15 20 end
... ...