2016-01-06 18:15:37 -05:00
|
|
|
module Gitlab
|
|
|
|
module GithubImport
|
|
|
|
class WikiFormatter
|
|
|
|
attr_reader :project
|
|
|
|
|
|
|
|
def initialize(project)
|
|
|
|
@project = project
|
|
|
|
end
|
|
|
|
|
|
|
|
def path_with_namespace
|
|
|
|
"#{project.path_with_namespace}.wiki"
|
|
|
|
end
|
|
|
|
|
|
|
|
def import_url
|
2016-01-12 11:50:25 -05:00
|
|
|
project.import_url.sub(/\.git\z/, ".wiki.git")
|
2016-01-06 18:15:37 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|