wiki_formatter.rb 358 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Gitlab
  module GithubImport
    class WikiFormatter
      attr_reader :project

      def initialize(project)
        @project = project
      end

      def path_with_namespace
        "#{project.path_with_namespace}.wiki"
      end

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