Class: Gitit::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/gitit/git.rb

Overview



Instance Attribute Summary collapse

Instance Method Summary collapse

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

#branchesObject (readonly)

Returns the value of attribute branches.



17
18
19
# File 'lib/gitit/git.rb', line 17

def branches
  @branches
end

#configObject (readonly)

Returns the value of attribute config.



15
16
17
# File 'lib/gitit/git.rb', line 15

def config
  @config
end

#repoObject (readonly)

Returns the value of attribute repo.



14
15
16
# File 'lib/gitit/git.rb', line 14

def repo
  @repo
end

#statusObject (readonly)

Returns the value of attribute status.



16
17
18
# File 'lib/gitit/git.rb', line 16

def status
  @status
end