2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
module Gitlab
|
2018-03-17 18:26:18 +05:30
|
|
|
module LegacyGithubImport
|
2016-01-19 16:12:03 +05:30
|
|
|
class WikiFormatter
|
|
|
|
attr_reader :project
|
|
|
|
|
|
|
|
def initialize(project)
|
|
|
|
@project = project
|
|
|
|
end
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
def disk_path
|
2018-03-17 18:26:18 +05:30
|
|
|
project.wiki.disk_path
|
2016-01-19 16:12:03 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def import_url
|
|
|
|
project.import_url.sub(/\.git\z/, ".wiki.git")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|