Module: MultiGit::RuggedBackend

Extended by:
Backend
Defined in:
lib/multi_git/backend.rb,
lib/multi_git/rugged_backend.rb,
lib/multi_git/rugged_backend/ref.rb,
lib/multi_git/rugged_backend/blob.rb,
lib/multi_git/rugged_backend/tree.rb,
lib/multi_git/rugged_backend/commit.rb,
lib/multi_git/rugged_backend/config.rb,
lib/multi_git/rugged_backend/remote.rb,
lib/multi_git/rugged_backend/repository.rb

Defined Under Namespace

Classes: Blob, Commit, Config, Object, Ref, Remote, Repository, Tree

Class Method Summary collapse

Methods included from Backend

available?, load!, open

Class Method Details

.load!Object



74
75
76
# File 'lib/multi_git/backend.rb', line 74

def self.load!
  require 'multi_git/rugged_backend'
end

.open(path, options = {}) ⇒ Repository

Parameters:

  • directory (String)
  • options (Hash) (defaults to: {})

Options Hash (options):

  • :init (Boolean)

    if true the repository is automatically created (defaults to: false)

  • :bare (Boolean)

    if true the repository is expected to be bare

Returns:



13
14
15
# File 'lib/multi_git/rugged_backend.rb', line 13

def open(path, options = {})
  Repository.new(path, options)
end