summaryrefslogtreecommitdiff
path: root/lib/gitlab/legacy_github_import/wiki_formatter.rb
blob: ea52be5ee0ff402cc5c8d5f57e80c737b1545cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Gitlab
  module LegacyGithubImport
    class WikiFormatter
      attr_reader :project

      def initialize(project)
        @project = project
      end

      def disk_path
        project.wiki.disk_path
      end

      def import_url
        project.import_url.sub(/\.git\z/, ".wiki.git")
      end
    end
  end
end