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

26 lines
421 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
module Gitlab
2018-03-17 18:26:18 +05:30
module LegacyGithubImport
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
end
2019-03-02 22:35:43 +05:30
def full_path
project.wiki.full_path
end
def import_url
project.import_url.sub(/\.git\z/, ".wiki.git")
end
end
end
end