Sha256: da1eca488065d6070707d10798f46e626d29b63bc1e1e7cb0dfb543c7ab859db

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

module GitHubRecordsArchiver
  class Wiki < GitRepository
    attr_accessor :repository

    include DataHelper

    def initialize(repository)
      @repository = if repository.is_a?(String)
                      Repository.new(repository)
                    else
                      repository
                    end
    end

    def repo_dir
      @repo_dir ||= File.join repository.repo_dir, 'wiki'
    end

    private

    def clone_url
      @clone_url ||= repository.clone_url.gsub(/\.git\z/, '.wiki.git')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_records_archiver-0.3.1 lib/github_records_archiver/wiki.rb
github_records_archiver-0.2.0 lib/github_records_archiver/wiki.rb