wiki_formatter.rb 328 Bytes
Newer Older
1
module Gitlab
2
  module LegacyGithubImport
3 4 5 6 7 8 9
    class WikiFormatter
      attr_reader :project

      def initialize(project)
        @project = project
      end

10
      def disk_path
Nick Thomas's avatar
Nick Thomas committed
11
        project.wiki.disk_path
12 13 14
      end

      def import_url
15
        project.import_url.sub(/\.git\z/, ".wiki.git")
16 17 18 19
      end
    end
  end
end