OSDN Git Service

Create Wiki migration task.
authorDan Knox <dknox@threedotloft.com>
Mon, 11 Mar 2013 02:10:44 +0000 (19:10 -0700)
committerDan Knox <dknox@threedotloft.com>
Mon, 11 Mar 2013 02:10:44 +0000 (19:10 -0700)
commitf0aa54e0fbce27600aa02a1ee5465e2ab5c18ccc
treec659653b69885d87745fb7e55a5f3c8d1b8d42db
parent1479f1722702c955ed3ee9456107c6a1a7277c7b
Create Wiki migration task.

This commit adds a new Rake task for migrating all of your existing
Wiki content from your database into new Gollum repositories.

The bulk of the logic happens within the `WikiToGollumMigrator`
class which is decently test covered and located in the lib directory.

The new Rake task can be executed by running:

   `bundle exec rake gitlab:wiki:migrate`

It will output a nice log of every project that it migrates along
with success or failure messages.

I have used it on my own installation to migrate my Wikis successfully.
lib/tasks/gitlab/migrate_wiki.rake [new file with mode: 0644]
lib/wiki_to_gollum_migrator.rb [new file with mode: 0644]
spec/lib/wiki_to_gollum_migrator_spec.rb [new file with mode: 0644]