Class: GitlabLocal
- Inherits:
-
Object
- Object
- GitlabLocal
- Defined in:
- lib/git/gitlab/gitlablocal.rb,
lib/git/gitlab/local/codereview.rb
Direct Known Subclasses
Defined Under Namespace
Modules: CodeReview
Instance Attribute Summary collapse
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
-
#initialize ⇒ GitlabLocal
constructor
A new instance of GitlabLocal.
Constructor Details
#initialize ⇒ GitlabLocal
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
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
4 5 6 |
# File 'lib/git/gitlab/gitlablocal.rb', line 4 def repository @repository end |