gitlab-org--gitlab-foss/lib/gitlab/github_import/wiki_formatter.rb

20 lines
322 B
Ruby
Raw Normal View History

2016-01-06 18:15:37 -05:00
module Gitlab
module GithubImport
class WikiFormatter
attr_reader :project
def initialize(project)
@project = project
end
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
project.import_url.sub(/\.git\z/, ".wiki.git")
2016-01-06 18:15:37 -05:00
end
end
end
end