Class: Dragnet::BaseRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/dragnet/base_repository.rb

Overview

Base class for Dragnet's repository classes.

Direct Known Subclasses

MultiRepository, Repository

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ BaseRepository

Returns a new instance of BaseRepository.

Parameters:

  • path (Pathname)

    The path were the repository is located.



11
12
13
# File 'lib/dragnet/base_repository.rb', line 11

def initialize(path:)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/dragnet/base_repository.rb', line 8

def path
  @path
end

Instance Method Details

#branchObject

Raises:



21
22
23
# File 'lib/dragnet/base_repository.rb', line 21

def branch
  incompatible_repository(__method__)
end

#branchesObject

Raises:



26
27
28
# File 'lib/dragnet/base_repository.rb', line 26

def branches
  incompatible_repository(__method__)
end

#branches_with(_commit) ⇒ Object

Raises:



51
52
53
# File 'lib/dragnet/base_repository.rb', line 51

def branches_with(_commit)
  incompatible_repository(__method__)
end

#branches_with_headObject

Raises:



56
57
58
# File 'lib/dragnet/base_repository.rb', line 56

def branches_with_head
  incompatible_repository(__method__)
end

#diffObject

Raises:



31
32
33
# File 'lib/dragnet/base_repository.rb', line 31

def diff
  incompatible_repository(__method__)
end

#gitObject

Raises:



16
17
18
# File 'lib/dragnet/base_repository.rb', line 16

def git
  incompatible_repository(__method__)
end

#headObject

Raises:



36
37
38
# File 'lib/dragnet/base_repository.rb', line 36

def head
  incompatible_repository(__method__)
end

#remote_uri_pathObject

Raises:



41
42
43
# File 'lib/dragnet/base_repository.rb', line 41

def remote_uri_path
  incompatible_repository(__method__)
end

#repositoriesObject

Raises:



46
47
48
# File 'lib/dragnet/base_repository.rb', line 46

def repositories
  incompatible_repository(__method__)
end