Class: GitlabLocal

Inherits:
Object
  • Object
show all
Defined in:
lib/git/gitlab/gitlablocal.rb,
lib/git/gitlab/local/codereview.rb

Direct Known Subclasses

GitlabLocalRepository

Defined Under Namespace

Modules: CodeReview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGitlabLocal

Returns a new instance of GitlabLocal.



6
7
8
# File 'lib/git/gitlab/gitlablocal.rb', line 6

def initialize
  @repository = Grit::Repo.new(`git rev-parse --show-toplevel`.chomp)
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



4
5
6
# File 'lib/git/gitlab/gitlablocal.rb', line 4

def repository
  @repository
end