Class: Gitit::Git
- Inherits:
-
Object
- Object
- Gitit::Git
- Defined in:
- lib/gitit/git.rb
Overview
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(location) ⇒ Git
constructor
————————————————————————- ————————————————————————-.
Constructor Details
#initialize(location) ⇒ Git
21 22 23 24 25 26 |
# File 'lib/gitit/git.rb', line 21 def initialize(location) @repo = GitRepo.new(location) @config = GitConfig.new(repo) @status = GitStatus.new(repo) @branches = GitBranches.new(repo) end |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
17 18 19 |
# File 'lib/gitit/git.rb', line 17 def branches @branches end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
15 16 17 |
# File 'lib/gitit/git.rb', line 15 def config @config end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
14 15 16 |
# File 'lib/gitit/git.rb', line 14 def repo @repo end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
16 17 18 |
# File 'lib/gitit/git.rb', line 16 def status @status end |