debian-mirror-gitlab/lib/gitlab/github_import/wiki_formatter.rb

20 lines
327 B
Ruby
Raw Normal View History

module Gitlab
module GithubImport
class WikiFormatter
attr_reader :project
def initialize(project)
@project = project
end
2017-09-10 17:25:29 +05:30
def disk_path
"#{project.disk_path}.wiki"
end
def import_url
project.import_url.sub(/\.git\z/, ".wiki.git")
end
end
end
end