Sha256: f94825432d579a09f61212371487db16ce9319b894ec76ca73e974b9a3c32ea4
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true begin require 'git_dump/repo/rugged' rescue LoadError require 'git_dump/repo/git' end require 'git_dump/cmd' require 'git_dump/version' require 'git_dump/version/builder' class GitDump # Main class: create/initialize repository, find versions, provide interface # to git class Repo include defined?(Rugged) ? Rugged : Git class << self # List remote version ids alias_method :remote_version_ids, :remote_tag_names end attr_reader :path def initialize(path, options) @path = path resolve(path, options) end # New version builder def new_version Version::Builder.new(self) end # List of versions def versions Version.list(self) end def inspect "#<#{self.class} path=#{path}>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_dump-0.1.1 | lib/git_dump/repo.rb |