2016-01-06 18:15:37 -05:00
|
|
|
module Gitlab
|
|
|
|
module GithubImport
|
|
|
|
class WikiFormatter
|
|
|
|
attr_reader :project
|
|
|
|
|
|
|
|
def initialize(project)
|
|
|
|
@project = project
|
|
|
|
end
|
|
|
|
|
2017-07-21 20:37:22 -04:00
|
|
|
def disk_path
|
2017-10-18 07:53:06 -04:00
|
|
|
project.wiki.disk_path
|
2016-01-06 18:15:37 -05:00
|
|
|
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
|